- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 991 for oldR (0.05 sec)
-
src/internal/runtime/atomic/atomic_mipsx.s
// license that can be found in the LICENSE file. //go:build mips || mipsle #include "textflag.h" // bool Cas(int32 *val, int32 old, int32 new) // Atomically: // if(*val == old){ // *val = new; // return 1; // } else // return 0; TEXT ·Cas(SB),NOSPLIT,$0-13 MOVW ptr+0(FP), R1 MOVW old+4(FP), R2 MOVW new+8(FP), R5 SYNC try_cas: MOVW R5, R3 LL (R1), R4 // R4 = *R1 BNE R2, R4, cas_fail
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 21:29:34 UTC 2024 - 4.9K bytes - Viewed (0) -
pkg/registry/autoscaling/horizontalpodautoscaler/strategy.go
newHPA := obj.(*autoscaling.HorizontalPodAutoscaler) oldHPA := old.(*autoscaling.HorizontalPodAutoscaler) // Update is not allowed to set status newHPA.Status = oldHPA.Status } // ValidateUpdate is the default update validation for an end user. func (autoscalerStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 02 04:51:00 UTC 2024 - 5.4K bytes - Viewed (0) -
src/internal/runtime/atomic/types.go
// //go:nosplit func (u *UnsafePointer) CompareAndSwapNoWB(old, new unsafe.Pointer) bool { return Casp1(&u.value, old, new) } // CompareAndSwap atomically compares u's value with old, // and if they're equal, swaps u's value with new. // It reports whether the swap ran. func (u *UnsafePointer) CompareAndSwap(old, new unsafe.Pointer) bool { return casPointer(&u.value, old, new) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 14.2K bytes - Viewed (0) -
pkg/registry/flowcontrol/prioritylevelconfiguration/strategy_test.go
} err := func(obj, old *flowcontrol.PriorityLevelConfiguration) field.ErrorList { if old == nil { return Strategy.Validate(ctx, obj) // for create operation } return Strategy.ValidateUpdate(ctx, obj, old) // for update operation }(internal, test.old) if !cmp.Equal(test.errExpected, err) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 20:55:50 UTC 2024 - 6.5K bytes - Viewed (0) -
pkg/registry/storagemigration/storagemigration/strategy.go
} func (s strategy) ValidateUpdate(ctx context.Context, new, old runtime.Object) field.ErrorList { newBundle := new.(*storagemigration.StorageVersionMigration) oldBundle := old.(*storagemigration.StorageVersionMigration) return svmvalidation.ValidateStorageVersionMigrationUpdate(newBundle, oldBundle) } func (strategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 04:18:56 UTC 2024 - 4.7K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_mips64x.s
//go:build mips64 || mips64le #include "textflag.h" #define SYNC WORD $0xf // bool cas(uint32 *ptr, uint32 old, uint32 new) // Atomically: // if(*val == old){ // *val = new; // return 1; // } else // return 0; TEXT ·Cas(SB), NOSPLIT, $0-17 MOVV ptr+0(FP), R1 MOVW old+8(FP), R2 MOVW new+12(FP), R5 SYNC cas_again: MOVV R5, R3 LL (R1), R4 BNE R2, R4, cas_fail SC R3, (R1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 21:29:34 UTC 2024 - 7.2K bytes - Viewed (0) -
src/sync/atomic/atomic_test.go
old := uint32(addr.Swap(int32(new))) if old>>16 != old<<16>>16 { panic(fmt.Sprintf("SwapInt32 is not atomic: %v", old)) } } } func hammerSwapUint32(addr *uint32, count int) { seed := int(uintptr(unsafe.Pointer(&count))) for i := 0; i < count; i++ { new := uint32(seed+i)<<16 | uint32(seed+i)<<16>>16 old := SwapUint32(addr, new)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 71.4K bytes - Viewed (0) -
pkg/registry/resource/podschedulingcontext/strategy.go
newScheduling := obj.(*resource.PodSchedulingContext) oldScheduling := old.(*resource.PodSchedulingContext) newScheduling.Status = oldScheduling.Status } func (podSchedulingStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList { newScheduling := obj.(*resource.PodSchedulingContext) oldScheduling := old.(*resource.PodSchedulingContext)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 20:39:24 UTC 2024 - 5.6K bytes - Viewed (0) -
src/internal/runtime/atomic/stubs.go
import "unsafe" //go:noescape func Cas(ptr *uint32, old, new uint32) bool // NO go:noescape annotation; see atomic_pointer.go. func Casp1(ptr *unsafe.Pointer, old, new unsafe.Pointer) bool //go:noescape func Casint32(ptr *int32, old, new int32) bool //go:noescape func Casint64(ptr *int64, old, new int64) bool //go:noescape func Casuintptr(ptr *uintptr, old, new uintptr) bool //go:noescape
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 1.2K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_386.s
// license that can be found in the LICENSE file. #include "textflag.h" #include "funcdata.h" // bool Cas(int32 *val, int32 old, int32 new) // Atomically: // if(*val == old){ // *val = new; // return 1; // }else // return 0; TEXT ·Cas(SB), NOSPLIT, $0-13 MOVL ptr+0(FP), BX MOVL old+4(FP), AX MOVL new+8(FP), CX LOCK CMPXCHGL CX, 0(BX) SETEQ ret+12(FP) RET TEXT ·Casint32(SB), NOSPLIT, $0-13
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 6.5K bytes - Viewed (0)