Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for adjChunks (0.27 sec)

  1. src/runtime/mfinal_test.go

    // have a greater chance of finding adjacent ones.
    // size class 19: 320 byte objects, 25 per page, 1 page alloc at a time
    const objsize = 320
    
    type objtype [objsize]byte
    
    func adjChunks() (*objtype, *objtype) {
    	var s []*objtype
    
    	for {
    		c := new(objtype)
    		for _, d := range s {
    			if uintptr(unsafe.Pointer(c))+unsafe.Sizeof(*c) == uintptr(unsafe.Pointer(d)) {
    				return c, d
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:45:58 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top