Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for gcmInit (0.11 sec)

  1. src/runtime/mgc.go

    // this to true to break all the programs using assume-no-moving-gc.
    //
    //go:linkname heapObjectsCanMove
    func heapObjectsCanMove() bool {
    	return false
    }
    
    func gcinit() {
    	if unsafe.Sizeof(workbuf{}) != _WorkbufSize {
    		throw("size of Workbuf is suboptimal")
    	}
    	// No sweep on the first cycle.
    	sweep.active.state.Store(sweepDrainedMask)
    
    	// Initialize GC pacer state.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  2. src/runtime/malloc.go

    		userArenaHint.next, mheap_.userArena.arenaHints = mheap_.userArena.arenaHints, userArenaHint
    	}
    	// Initialize the memory limit here because the allocator is going to look at it
    	// but we haven't called gcinit yet and we're definitely going to allocate memory before then.
    	gcController.memoryLimit.Store(maxInt64)
    }
    
    // sysAlloc allocates heap arena space for at least n bytes. The
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top