Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 232 for defBlock (0.17 sec)

  1. src/runtime/lock_wasip1.go

    }
    
    func lock(l *mutex) {
    	lockWithRank(l, getLockRank(l))
    }
    
    func lock2(l *mutex) {
    	if l.key == mutex_locked {
    		// wasm is single-threaded so we should never
    		// observe this.
    		throw("self deadlock")
    	}
    	gp := getg()
    	if gp.m.locks < 0 {
    		throw("lock count")
    	}
    	gp.m.locks++
    	l.key = mutex_locked
    }
    
    func unlock(l *mutex) {
    	unlockWithRank(l)
    }
    
    func unlock2(l *mutex) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/scaninfo/DefaultDaemonScanInfoSpec.groovy

            then:
            1 * listenerManager.removeListener(daemonExpirationListener)
        }
    
        def "should not deadlock with daemon scan info"() {
            def manager = new DefaultListenerManager(Scope.Global)
            def daemonScanInfo = new DefaultDaemonScanInfo(new DaemonRunningStats(), 1000, false, Mock(DaemonRegistry), manager)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/timeout/IntegrationTestTimeout.java

     * {@link org.gradle.integtests.fixtures.AbstractIntegrationSpec}. Upon timeout,
     * all threads' stack traces of current JVM (embedded executer) or forked JVM (forking executer)
     * are printed to help us debug deadlock issues.
     */
    
    @Retention(RetentionPolicy.RUNTIME)
    @Target({ElementType.TYPE, ElementType.METHOD})
    @ExtensionAnnotation(IntegrationTestTimeoutExtension.class)
    public @interface IntegrationTestTimeout {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. build-logic/lifecycle/src/main/kotlin/gradlebuild.lifecycle.gradle.kts

    setupGlobalState()
    
    tasks.registerDistributionsPromotionTasks()
    
    tasks.registerEarlyFeedbackRootLifecycleTasks()
    
    /**
     * Print all stacktraces of running JVMs on the machine upon timeout. Helps us diagnose deadlock issues.
     */
    fun setupTimeoutMonitorOnCI() {
        if (BuildEnvironment.isCiServer && project.name != "gradle-kotlin-dsl-accessors") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:39:09 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. src/sync/once.go

    // arguments to a function to be invoked by Do:
    //
    //	config.once.Do(func() { config.init(filename) })
    //
    // Because no call to Do returns until the one call to f returns, if f causes
    // Do to be called, it will deadlock.
    //
    // If f panics, Do considers it to have returned; future calls of Do return
    // without calling f.
    func (o *Once) Do(f func()) {
    	// Note: Here is an incorrect implementation of Do:
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. pkg/kube/krt/fetch.go

    		ff := func(o []Event[T], initialSync bool) {
    			f(slices.Map(o, castEvent[T, any]), initialSync)
    		}
    		// Skip calling all the existing state for secondary dependencies, otherwise we end up with a deadlock due to
    		// rerunning the same collection's recomputation at the same time (once for the initial event, then for the initial registration).
    		c.RegisterBatch(ff, false)
    	})
    
    	// Now we can do the real fetching
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/runtime/time_fake.go

    func time_now() (sec int64, nsec int32, mono int64) {
    	return faketime / 1e9, int32(faketime % 1e9), faketime
    }
    
    // write is like the Unix write system call.
    // We have to avoid write barriers to avoid potential deadlock
    // on write calls.
    //
    //go:nowritebarrierrec
    func write(fd uintptr, p unsafe.Pointer, n int32) int32 {
    	if !(fd == 1 || fd == 2) {
    		// Do an ordinary write.
    		return write1(fd, p, n)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:15:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/scaninfo/DefaultDaemonScanInfo.java

                            // the build finished listener. If the message happens to be a graceful expire
                            // one, then there's a large risk that we create a deadlock, because we're trying to
                            // remove the same listener from 2 different notifications. To avoid this, we just
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  9. src/runtime/preempt.go

    // the current M (if any) must be in a preemptible state. This
    // prevents deadlocks where two goroutines attempt to suspend each
    // other and both are in non-preemptible states. There are other ways
    // to resolve this deadlock, but this seems simplest.
    //
    // TODO(austin): What if we instead required this to be called from a
    // user goroutine? Then we could deschedule the goroutine while
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  10. src/runtime/proc_test.go

    	if runtime.NumCPU() == 1 {
    		// Takes too long, too easy to deadlock, etc.
    		t.Skip("skipping on uniprocessor")
    	}
    	P := 4
    	N := 10
    	if testing.Short() {
    		P = 3
    		N = 3
    	}
    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(P))
    	// If runtime triggers a forced GC during this test then it will deadlock,
    	// since the goroutines can't be stopped/preempted.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
Back to top