Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 271 for defBlock (0.79 sec)

  1. misc/wasm/wasm_exec_node.js

    WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
    	process.on("exit", (code) => { // Node.js exits if no event handler is pending
    		if (code === 0 && !go.exited) {
    			// deadlock, make Go print error and stack traces
    			go._pendingEvent = { id: 0 };
    			go._resume();
    		}
    	});
    	return go.run(result.instance);
    }).catch((err) => {
    	console.error(err);
    	process.exit(1);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:49:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprog/preempt.go

    		runtime.Gosched()
    	}
    
    	// Run a GC, which will have to stop the goroutine for STW and
    	// for stack scanning. If this doesn't work, the test will
    	// deadlock and timeout.
    	runtime.GC()
    
    	println("OK")
    }
    
    //go:noinline
    func frameless() {
    	for i := int64(0); i < 1<<62; i++ {
    		out += i * i * i * i * i * 12345
    	}
    }
    
    var out int64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 07 17:46:04 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  3. src/runtime/panic.go

    	mp := acquirem()
    	pp := mp.p.ptr()
    	if len(pp.deferpool) == 0 && sched.deferpool != nil {
    		lock(&sched.deferlock)
    		for len(pp.deferpool) < cap(pp.deferpool)/2 && sched.deferpool != nil {
    			d := sched.deferpool
    			sched.deferpool = d.link
    			d.link = nil
    			pp.deferpool = append(pp.deferpool, d)
    		}
    		unlock(&sched.deferlock)
    	}
    	if n := len(pp.deferpool); n > 0 {
    		d = pp.deferpool[n-1]
    		pp.deferpool[n-1] = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  4. src/sync/cond_test.go

    		<-running // Wait for everyone to run.
    	}
    	for n > 0 {
    		select {
    		case <-awake:
    			t.Fatal("goroutine not asleep")
    		default:
    		}
    		m.Lock()
    		c.Signal()
    		m.Unlock()
    		<-awake // Will deadlock if no goroutine wakes up
    		select {
    		case <-awake:
    			t.Fatal("too many goroutines awake")
    		default:
    		}
    		n--
    	}
    	c.Signal()
    }
    
    func TestCondSignalGenerations(t *testing.T) {
    	var m Mutex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 22 18:52:42 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue9400_linux.go

    	const pattern = 0x123456789abcdef
    	var big [1024]uint64 // len must match assembly
    	for i := range big {
    		big[i] = pattern
    	}
    
    	// Disable GC for the duration of the test.
    	// This avoids a potential GC deadlock when spinning in uninterruptible ASM below #49695.
    	defer debug.SetGCPercent(debug.SetGCPercent(-1))
    	// SetGCPercent waits until the mark phase is over, but the runtime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. 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)
  7. src/syscall/zerrors_windows.go

    	ECONNREFUSED - APPLICATION_ERROR:    "connection refused",
    	ECONNRESET - APPLICATION_ERROR:      "connection reset by peer",
    	EDEADLK - APPLICATION_ERROR:         "resource deadlock avoided",
    	EDEADLOCK - APPLICATION_ERROR:       "resource deadlock avoided",
    	EDESTADDRREQ - APPLICATION_ERROR:    "destination address required",
    	EDOM - APPLICATION_ERROR:            "numerical argument out of domain",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 14 13:21:46 UTC 2018
    - 10K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top