- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for shouldFinalize (0.17 sec)
-
test/fixedbugs/issue27518b.go
for i := 0; i < len(*h); i++ { if h[i] != filler { err = "filler overwritten" } } } type StackObj struct { h *HeapObj } func gc(shouldFinalize bool) { runtime.GC() runtime.GC() 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()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 03 19:54:23 UTC 2018 - 1.2K bytes - Viewed (0) -
test/fixedbugs/issue32477.go
h[i] = filler } } func (h *HeapObj) check() { for i := 0; i < len(*h); i++ { if h[i] != filler { err = "filler overwritten" } } } func gc(shouldFinalize bool) { runtime.GC() runtime.GC() runtime.GC() if shouldFinalize != finalized { err = "heap object finalized at the wrong time" } } func main() { h := new(HeapObj) h.init() runtime.SetFinalizer(h, func(h *HeapObj) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 18:51:04 UTC 2019 - 1.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueState.java
*/ public static <S> ValueState<S> newState(PropertyHost host, Function<S, S> copier) { return new ValueState.NonFinalizedValue<>(host, copier); } public abstract boolean shouldFinalize(Describable displayName, @Nullable ModelObject producer); /** * Returns the state to replace this state once is finalized. */ public abstract ValueState<S> finalState(); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 13.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java
return getSupplier(context).getProducer(); } } } @Override public void finalizeValue() { if (state.shouldFinalize(this.getDisplayName(), producer)) { try (EvaluationContext.ScopeContext context = openScope()) { finalizeNow(context, ValueConsumer.IgnoreUnsafeRead); } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:54 UTC 2024 - 15.8K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java
} @Override public Object unpackState() { return getFiles(); } @Override public void finalizeValue() { if (valueState.shouldFinalize(this::displayNameForThisCollection, null)) { finalizeNow(); } } private void finalizeNow() { calculateFinalizedValue(); valueState = valueState.finalState();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 16:06:55 UTC 2024 - 30.2K bytes - Viewed (0)