Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestHeapObjectsCanMove (0.29 sec)

  1. src/runtime/heap_test.go

    package runtime_test
    
    import (
    	"testing"
    	_ "unsafe"
    )
    
    //go:linkname heapObjectsCanMove runtime.heapObjectsCanMove
    func heapObjectsCanMove() bool
    
    func TestHeapObjectsCanMove(t *testing.T) {
    	if heapObjectsCanMove() {
    		// If this happens (or this test stops building),
    		// it will break go4.org/unsafe/assume-no-moving-gc.
    		t.Fatalf("heap objects can move!")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 18:35:49 UTC 2023
    - 529 bytes
    - Viewed (0)
Back to top