Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 474 for _finalize (0.2 sec)

  1. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     * RuntimeException}.
     *
     * <p>Here's an example that tests a {@code finalize} method:
     *
     * <pre>{@code
     * final CountDownLatch latch = new CountDownLatch(1);
     * Object x = new MyClass() {
     *   ...
     *   protected void finalize() { latch.countDown(); ... }
     * };
     * x = null;  // Hint to the JIT that x is stack-unreachable
     * GcFinalization.await(latch);
     * }</pre>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/GcFinalization.java

     * RuntimeException}.
     *
     * <p>Here's an example that tests a {@code finalize} method:
     *
     * <pre>{@code
     * final CountDownLatch latch = new CountDownLatch(1);
     * Object x = new MyClass() {
     *   ...
     *   protected void finalize() { latch.countDown(); ... }
     * };
     * x = null;  // Hint to the JIT that x is stack-unreachable
     * GcFinalization.await(latch);
     * }</pre>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyLifecycleIntegrationTest.groovy

                        println("value = " + thing.prop.get())
                    }
                }
            """
    
            when:
            run("show")
    
            then:
            outputContains("finalize failed with: Cannot finalize the value of extension 'thing' property 'prop' because configuration of root project 'broken' has not completed yet.")
            output.count("value = value 1") == 2
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:00:52 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionLifecycleIntegrationTest.groovy

                        println("value = " + thing.prop.files)
                    }
                }
            """
    
            when:
            run("show")
    
            then:
            outputContains("finalize failed with: Cannot finalize the value of this file collection because configuration of root project 'broken' has not completed yet.")
            output.count("value = [${file('some-file')}]") == 2
        }
    
        @NotYetImplemented
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 10:55:07 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  5. 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)
  6. subprojects/core/src/main/java/org/gradle/execution/plan/HasFinalizers.java

            // A node cannot be cancelled if it belongs to a finalizer group that contains a finalized node that has started execution or that cannot be cancelled, and whose finalizer
            // can potentially still execute
            // So visit all the finalizer groups reachable from groups that the node belongs to and the finalized nodes of those groups
            Set<FinalizerGroup> seen = new HashSet<>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 16 22:19:21 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            0 * closure._
            1 * fileResolver.resolve('a') >> file1
            1 * fileResolver.resolve('b') >> file2
            0 * fileResolver._
        }
    
        def "can finalize when already finalized"() {
            given:
            def file = new File('one')
            collection.from('a')
    
            when:
            collection.finalizeValue()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  8. 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
     * (ie the finalized task has completed). But if the dependency is also required by some node reachable from the
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  9. src/runtime/arena_test.go

    	// Try to queue the object's finalizer that we set earlier.
    	GC()
    	GC()
    
    	if !BlockUntilEmptyFinalizerQueue(int64(2 * time.Second)) {
    		t.Fatal("finalizer queue was never emptied")
    	}
    	if !finalized.Load() {
    		t.Error("expected arena-referenced object to be finalized")
    	}
    }
    
    func TestUserArenaClearsPointerBits(t *testing.T) {
    	// This is a regression test for a serious issue wherein if pointer bits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/test/groovy/org/gradle/language/internal/DefaultBinaryCollectionTest.groovy

            0 * configure._
            0 * finalized._
    
            then:
            1 * finalized.execute(binary1)
            1 * finalized.execute(binary2)
            0 * known._
            0 * configure._
            0 * finalized._
        }
    
        def "runs actions on element of given type when collection is realized"() {
            def known = Mock(Action)
            def configure = Mock(Action)
            def finalized = Mock(Action)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 18.4K bytes
    - Viewed (0)
Back to top