Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for freeManual (0.2 sec)

  1. src/runtime/mheap.go

    		h.freeSpanLocked(s, spanAllocHeap)
    		unlock(&h.lock)
    	})
    }
    
    // freeManual frees a manually-managed span returned by allocManual.
    // typ must be the same as the spanAllocType passed to the allocManual that
    // allocated s.
    //
    // This must only be called when gcphase == _GCoff. See mSpanState for
    // an explanation.
    //
    // freeManual must be called on the system stack because it acquires
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  2. src/runtime/mbitmap.go

    	s := mheap_.allocManual(pages, spanAllocPtrScalarBits)
    	runGCProg(addb(prog, 4), (*byte)(unsafe.Pointer(s.startAddr)))
    	return s
    }
    func dematerializeGCProg(s *mspan) {
    	mheap_.freeManual(s, spanAllocPtrScalarBits)
    }
    
    func dumpGCProg(p *byte) {
    	nptr := 0
    	for {
    		x := *p
    		p = add1(p)
    		if x == 0 {
    			print("\t", nptr, " end\n")
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
Back to top