Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for defBlock (0.18 sec)

  1. src/runtime/crash_test.go

    	testCrashHandler(t, false)
    }
    
    func testDeadlock(t *testing.T, name string) {
    	// External linking brings in cgo, causing deadlock detection not working.
    	testenv.MustInternalLink(t, false)
    
    	output := runTestProg(t, "testprog", name)
    	want := "fatal error: all goroutines are asleep - deadlock!\n"
    	if !strings.HasPrefix(output, want) {
    		t.Fatalf("output does not start with %q:\n%s", want, output)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/runtime/stack.go

    //
    //go:systemstack
    func stackalloc(n uint32) stack {
    	// Stackalloc must be called on scheduler stack, so that we
    	// never try to grow the stack during the code that stackalloc runs.
    	// Doing so would cause a deadlock (issue 1547).
    	thisg := getg()
    	if thisg != thisg.m.g0 {
    		throw("stackalloc not on scheduler stack")
    	}
    	if n&(n-1) != 0 {
    		throw("stack size not a power of 2")
    	}
    	if stackDebug >= 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  5. src/runtime/chan.go

    	// lock protects all fields in hchan, as well as several
    	// fields in sudogs blocked on this channel.
    	//
    	// Do not change another G's status while holding this lock
    	// (in particular, do not ready a G), as this can deadlock
    	// with stack shrinking.
    	lock mutex
    }
    
    type waitq struct {
    	first *sudog
    	last  *sudog
    }
    
    //go:linkname reflect_makechan reflect.makechan
    func reflect_makechan(t *chantype, size int) *hchan {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  6. pkg/test/framework/test.go

    	// will exit before the parallel children are executed. It should be noted that if the parent test is prevented
    	// from exiting (e.g. parent test is waiting for something to occur within the child test), the test will
    	// deadlock.
    	//
    	// Example:
    	//
    	// func TestParallel(t *testing.T) {
    	//     framework.NewTest(t).
    	//         Run(func(ctx framework.TestContext) {
    	//             ctx.NewSubTest("T1").
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. src/runtime/trace.go

    	// also no stale generation values left. Therefore, it's safe to flush
    	// any buffers that remain in that generation's slot.
    	const debugDeadlock = false
    	systemstack(func() {
    		// Track iterations for some rudimentary deadlock detection.
    		i := 0
    		detectedDeadlock := false
    
    		for mToFlush != nil {
    			prev := &mToFlush
    			for mp := *prev; mp != nil; {
    				if mp.trace.seqlock.Load()%2 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  8. src/go/types/subst.go

    		}
    
    	case *Named:
    		// subst is called during expansion, so in this function we need to be
    		// careful not to call any methods that would cause t to be expanded: doing
    		// so would result in deadlock.
    		//
    		// So we call t.Origin().TypeParams() rather than t.TypeParams().
    		orig := t.Origin()
    		n := orig.TypeParams().Len()
    		if n == 0 {
    			return t // type is not parameterized
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/subst.go

    		}
    
    	case *Named:
    		// subst is called during expansion, so in this function we need to be
    		// careful not to call any methods that would cause t to be expanded: doing
    		// so would result in deadlock.
    		//
    		// So we call t.Origin().TypeParams() rather than t.TypeParams().
    		orig := t.Origin()
    		n := orig.TypeParams().Len()
    		if n == 0 {
    			return t // type is not parameterized
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/ParallelTaskExecutionIntegrationTest.groovy

                blockingServer.expect(":cInvalidPing")
                run ":aPing", ":bPing", ":cInvalidPing"
            }
        }
    
        @Issue("https://github.com/gradle/gradle/issues/17013")
        def "does not deadlock when resolving outputs requires resolving multiple artifacts"() {
            buildFile("""
                import org.gradle.util.internal.GFileUtils
    
                abstract class OutputDeadlockTask extends DefaultTask {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 14:00:51 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top