Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,365 for finalizerB (0.59 sec)

  1. test/finprofiled.go

    	// only for middle bytes. The finalizer resurrects that object.
    	// As the result, all allocated memory must stay alive.
    	const (
    		N             = 1 << 20
    		tinyBlockSize = 16 // runtime._TinySize
    	)
    	hold := make([]*int32, 0, N)
    	for i := 0; i < N; i++ {
    		x := new(int32)
    		if i%3 == 0 {
    			runtime.SetFinalizer(x, func(p *int32) {
    				hold = append(hold, p)
    			})
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 05:48:00 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. src/runtime/mfinal_test.go

    	ch := make(chan bool, 10)
    	finalize := func(x *int) {
    		if *x != 97531 {
    			t.Errorf("finalizer %d, want %d", *x, 97531)
    		}
    		ch <- true
    	}
    
    	var finalizerTests = []struct {
    		convert   func(*int) any
    		finalizer any
    	}{
    		{func(x *int) any { return x }, func(v *int) { finalize(v) }},
    		{func(x *int) any { return Tintptr(x) }, func(v Tintptr) { finalize(v) }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:45:58 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. pkg/controller/garbagecollector/operations.go

    		for _, f := range finalizers {
    			if f == targetFinalizer {
    				found = true
    				continue
    			}
    			newFinalizers = append(newFinalizers, f)
    		}
    		if !found {
    			logger.V(5).Info("finalizer already removed from object", "finalizer", targetFinalizer, "object", owner.identity)
    			return nil
    		}
    
    		// remove the owner from dependent's OwnerReferences
    		patch, err := json.Marshal(&objectForFinalizersPatch{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 13:37:56 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskExecutionIntegrationTest.groovy

        def "detects a cycle with a task that mustRunAfter itself as finalizer of another task"() {
            buildFile << """
                def finalizer = tasks.register("finalizer")
                tasks.named("finalizer").configure {
                    mustRunAfter(finalizer)
                }
                task myTask {
                    finalizedBy finalizer
                }
            """
            expect:
            2.times {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  5. src/runtime/debug/heapdump_test.go

    	// bug 9172: WriteHeapDump couldn't handle more than one finalizer
    	println("allocating objects")
    	x := &Obj{}
    	runtime.SetFinalizer(x, objfin)
    	y := &Obj{}
    	runtime.SetFinalizer(y, objfin)
    
    	// Trigger collection of x and y, queueing of their finalizers.
    	println("starting gc")
    	runtime.GC()
    
    	// Make sure WriteHeapDump doesn't fail with multiple queued finalizers.
    	println("starting dump")
    	WriteHeapDump(f.Fd())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 12 00:32:29 UTC 2022
    - 2K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultExecutionPlan.java

                    node.dependenciesProcessed();
                    // Finalizers run immediately after the node
                    for (Node finalizer : node.getFinalizers()) {
                        finalizers.add(finalizer);
                        if (!visiting.contains(finalizer)) {
                            queue.addFirst(finalizer);
                        }
                    }
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/Finalize.java

    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * Denotes that the {@link RuleSource} method rule carrying this annotation finalizes the rule subject.
     * <p>
     * Finalize rules execute after {@link Mutate} rules, but before {@link Validate} rules.
     * The first parameter of the rule is the rule subject, which is mutable for the duration of the rule.
     * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. plugin/pkg/admission/storage/storageobjectinuseprotection/admission.go

    	// if we can't convert the obj to PV, just return
    	if !ok {
    		return nil
    	}
    	for _, f := range pv.Finalizers {
    		if f == volumeutil.PVProtectionFinalizer {
    			// Finalizer is already present, nothing to do
    			return nil
    		}
    	}
    	klog.V(4).Infof("adding PV protection finalizer to %s", pv.Name)
    	pv.Finalizers = append(pv.Finalizers, volumeutil.PVProtectionFinalizer)
    
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 02 21:13:50 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/execution/plan/DetermineExecutionPlanAction.java

     * `entryNodes` is not changed by this class.
     *
     * <h2>Note about finalizers</h2>
     * A dependency of a finalizer must not run until it is known to be needed by something else that should run.
     * So if the dependency is only required by a finalizer, then it should not start until the finalizer is ready to start
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  10. pkg/controller/job/tracking_utils_test.go

    		wantDelete int
    	}{
    		"new non-finished Pod with finalizer": {
    			newPod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Finalizers: []string{batch.JobTrackingFinalizer},
    				},
    				Status: v1.PodStatus{
    					Phase: v1.PodPending,
    				},
    			},
    		},
    		"pod with finalizer fails": {
    			oldPod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Finalizers: []string{batch.JobTrackingFinalizer},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 05:40:02 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top