Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 995 for finalizers (0.15 sec)

  1. subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultExecutionPlanParallelTest.groovy

            given:
            Task finalizerDep = task("finalizerDep", type: Async)
            Task finalizer = task("finalizer", dependsOn: [finalizerDep])
            Task a = task("a", type: Async, finalizedBy: [finalizer])
            Task finalizerDep2 = task("finalizerDep2", type: Async, dependsOn: [finalizer])
            Task finalizer2 = task("finalizer2", dependsOn: [finalizerDep2])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 93.5K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/execution/plan/CompositeNodeGroup.java

            return new CompositeNodeGroup(original.isReachableFromEntryPoint() || finalizers.isReachableFromEntryPoint(), original, finalizers.getFinalizerGroups());
        }
    
        public static HasFinalizers mergeInto(HasFinalizers original, HasFinalizers finalizers) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/runtime/mfinal.go

    			if finptrmask[0] == 0 {
    				// Build pointer mask for Finalizer array in block.
    				// Check assumptions made in finalizer1 array above.
    				if (unsafe.Sizeof(finalizer{}) != 5*goarch.PtrSize ||
    					unsafe.Offsetof(finalizer{}.fn) != 0 ||
    					unsafe.Offsetof(finalizer{}.arg) != goarch.PtrSize ||
    					unsafe.Offsetof(finalizer{}.nret) != 2*goarch.PtrSize ||
    					unsafe.Offsetof(finalizer{}.fint) != 3*goarch.PtrSize ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/FinalizerTaskIntegrationTest.groovy

            }
            2.times {
                fails 'entryPoint', '-Pfinalized1.broken', '--continue' // add --continue so that finalized2 always runs
                result.assertTaskOrder ':entryPoint', any(':finalized1', ':finalized2')
            }
        }
    
        @Issue("https://github.com/gradle/gradle/issues/21125")
        def "task can be finalized by and dependency of multiple finalizers"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  5. 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)
  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. 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)
  8. test/gc2.go

    // license that can be found in the LICENSE file.
    
    // Test that buffered channels are garbage collected properly.
    // An interesting case because they have finalizers and used to
    // have self loops that kept them from being collected.
    // (Cyclic data with finalizers is never finalized, nor collected.)
    
    package main
    
    import (
    	"fmt"
    	"os"
    	"runtime"
    )
    
    func main() {
    	const N = 10000
    	st := new(runtime.MemStats)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 977 bytes
    - Viewed (0)
  9. operator/pkg/controller/istiocontrolplane/istiocontrolplane_controller.go

    			finalizers = sets.New(iop.GetFinalizers()...)
    			finalizers.Delete(finalizer)
    			iop.SetFinalizers(sets.SortedList(finalizers))
    			finalizerError = r.client.Update(context.TODO(), iop)
    		}
    		if finalizerError != nil {
    			if errors.IsNotFound(finalizerError) {
    				scope.Infof("Did not remove finalizer from %s: the object was previously deleted.", iopName)
    				metrics.CRDeletionTotal.Increment()
    				return reconcile.Result{}, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. pkg/controller/volume/pvprotection/pv_protection_controller.go

    		logger.V(3).Info("Error adding protection finalizer to PV", "PV", klog.KObj(pv), "err", err)
    		return err
    	}
    	logger.V(3).Info("Added protection finalizer to PV", "PV", klog.KObj(pv))
    	return nil
    }
    
    func (c *Controller) removeFinalizer(ctx context.Context, pv *v1.PersistentVolume) error {
    	pvClone := pv.DeepCopy()
    	pvClone.ObjectMeta.Finalizers = slice.RemoveString(pvClone.ObjectMeta.Finalizers, volumeutil.PVProtectionFinalizer, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top