Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for gcTestIsReachable (0.19 sec)

  1. src/runtime/export_test.go

    // next call.
    var GCTestMoveStackOnNextCall = gcTestMoveStackOnNextCall
    
    // For GCTestIsReachable, it's important that we do this as a call so
    // escape analysis can see through it.
    func GCTestIsReachable(ptrs ...unsafe.Pointer) (mask uint64) {
    	return gcTestIsReachable(ptrs...)
    }
    
    // For GCTestPointerClass, it's important that we do this as a call so
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  2. src/runtime/gc_test.go

    		// scannable type.
    		p := unsafe.Pointer(new(*int))
    		all = append(all, p)
    		if i%2 == 0 {
    			half = append(half, p)
    			want |= 1 << i
    		}
    	}
    
    	got := runtime.GCTestIsReachable(all...)
    	if got&want != want {
    		// This is a serious bug - an object is live (due to the KeepAlive
    		// call below), but isn't reported as such.
    		t.Fatalf("live object not in reachable set; want %b, got %b", want, got)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top