Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FinalizerGAsleep (0.34 sec)

  1. src/runtime/abi_test.go

    	runtime.GC()
    	runtime.GC()
    
    	// fing will only pick the new IntRegArgs up if it's currently
    	// sleeping and wakes up, so wait for it to go to sleep.
    	success := false
    	for i := 0; i < 100; i++ {
    		if runtime.FinalizerGAsleep() {
    			success = true
    			break
    		}
    		time.Sleep(20 * time.Millisecond)
    	}
    	if !success {
    		t.Fatal("finalizer not asleep?")
    	}
    
    	argRegsBefore := runtime.SetIntArgRegs(abi.IntArgRegs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    func SetIntArgRegs(a int) int {
    	lock(&finlock)
    	old := intArgRegs
    	if a >= 0 {
    		intArgRegs = a
    	}
    	unlock(&finlock)
    	return old
    }
    
    func FinalizerGAsleep() bool {
    	return fingStatus.Load()&fingWait != 0
    }
    
    // For GCTestMoveStackOnNextCall, it's important not to introduce an
    // extra layer of call, since then there's a return before the "real"
    // next call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top