- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 474 for _finalize (0.13 sec)
-
test/fixedbugs/issue27518b.go
runtime.GC() if shouldFinalize != finalized { err = "heap object finalized at the wrong time" } } func main() { var s StackObj s.h = new(HeapObj) s.h.init() runtime.SetFinalizer(s.h, func(h *HeapObj) { finalized = true }) gc(false) h := g(&s) gc(false) h.check() gc(true) // finalize here, after return value's last use. (Go1.11 never runs the finalizer.) if err != "" { panic(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 03 19:54:23 UTC 2018 - 1.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy
- <b>""") } def "can finalize value when no value defined"() { def property = propertyWithNoValue() when: property."$method"() then: !property.present property.getOrNull() == null where: method << ["finalizeValue", "implicitFinalizeValue"] } def "can finalize value when value set"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 87.8K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/execution/plan/TaskNode.java
updateDependencyNodes(getDependencyNodes().addMustSuccessor(toNode)); toNode.addMustPredecessor(this); } public void addFinalizingSuccessor(Node finalized) { finalizingSuccessors.add(finalized); finalized.addFinalizer(this); } public void addShouldSuccessor(Node toNode) { deprecateLifecycleHookReferencingNonLocalTask("shouldRunAfter", toNode);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 29 13:54:06 UTC 2023 - 3.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultExecutionPlanParallelTest.groovy
when: executionPlan.setContinueOnFailure(true) addToGraphAndPopulate(finalizer, finalized) then: executionPlan.tasks as List == [broken, finalized, finalizerDependency, finalizer] assertTasksReady(broken, finalizerDependency) assertTaskReadyAndNoMoreToStart(finalizer) assertAllWorkComplete() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 05 22:18:26 UTC 2024 - 93.5K bytes - Viewed (0) -
pkg/controller/namespace/deletion/namespaced_resources_deleter_test.go
t.Errorf("Expected finalize-namespace action %v", actions[0]) } finalizers := actions[0].(core.CreateAction).GetObject().(*v1.Namespace).Spec.Finalizers if len(finalizers) != 1 { t.Errorf("There should be a single finalizer remaining") } if string(finalizers[0]) != "other" { t.Errorf("Unexpected finalizer value, %v", finalizers[0]) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 07:34:23 UTC 2023 - 15.8K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheParallelTaskIntegrationTest.groovy
@Requires(IntegTestPreconditions.NotParallelExecutor) def "finalizer task dependencies from sibling project must run after finalized task dependencies"() { server.start() given: def configurationCache = newConfigurationCacheFixture() createDirs("finalized", "finalizer") settingsFile << """ include 'finalized', 'finalizer' """ buildFile << """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 7.2K bytes - Viewed (0) -
pkg/controller/namespace/deletion/namespaced_resources_deleter.go
return nil } // return if it is already finalized. if finalized(namespace) { return nil } // there may still be content for us to remove estimate, err := d.deleteAllContent(ctx, namespace) if err != nil { return err } if estimate > 0 { return &ResourcesRemainingError{estimate} } // we have removed content, so mark it finalized by us
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 07:34:23 UTC 2023 - 25.2K bytes - Viewed (0) -
src/crypto/internal/boring/rsa.go
runtime.SetFinalizer(k, (*PublicKeyRSA).finalize) return k, nil } func (k *PublicKeyRSA) finalize() { C._goboringcrypto_RSA_free(k._key) } func (k *PublicKeyRSA) withKey(f func(*C.GO_RSA) C.int) C.int { // Because of the finalizer, any time _key is passed to cgo, that call must // be followed by a call to runtime.KeepAlive, to make sure k is not // collected (and finalized) before the cgo call returns.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 23:38:03 UTC 2024 - 12K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/execution/plan/FinalizerGroup.java
} private boolean hasACycle(Node finalized, SetMultimap<FinalizerGroup, FinalizerGroup> reachableGroups) { if (!(finalized.getGroup() instanceof HasFinalizers) || finalized.getGroup().isReachableFromEntryPoint()) { // Is not a member of a finalizer group or will not be blocked return false; } HasFinalizers groups = (HasFinalizers) finalized.getGroup();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jul 01 16:25:48 UTC 2023 - 14.3K bytes - Viewed (0) -
src/crypto/internal/boring/hmac.go
C._goboringcrypto_HMAC_CTX_cleanup(&h.ctx) } else { h.needCleanup = true // Note: Because of the finalizer, any time h.ctx is passed to cgo, // that call must be followed by a call to runtime.KeepAlive(h), // to make sure h is not collected (and finalized) before the cgo // call returns. runtime.SetFinalizer(h, (*boringHMAC).finalize) } C._goboringcrypto_HMAC_CTX_init(&h.ctx)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 17:51:31 UTC 2023 - 4K bytes - Viewed (0)