Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MapNextArenaHint (0.25 sec)

  1. src/runtime/malloc_test.go

    	// Consume these 3 hints and force the runtime to find some
    	// fallback hints.
    	for i := 0; i < 5; i++ {
    		// Reserve memory at the next hint so it can't be used
    		// for the heap.
    		start, end, ok := MapNextArenaHint()
    		if !ok {
    			t.Skipf("failed to reserve memory at next arena hint [%#x, %#x)", start, end)
    		}
    		t.Logf("reserved [%#x, %#x)", start, end)
    		disallowed = append(disallowed, [2]uintptr{start, end})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    			return
    		}
    	}
    	hint.next = nil
    }
    
    // MapNextArenaHint reserves a page at the next arena growth hint,
    // preventing the arena from growing there, and returns the range of
    // addresses that are no longer viable.
    //
    // This may fail to reserve memory. If it fails, it still returns the
    // address range it attempted to reserve.
    func MapNextArenaHint() (start, end uintptr, ok bool) {
    	hint := mheap_.arenaHints
    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