Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Needzero (0.12 sec)

  1. src/runtime/malloc.go

    //
    // Allocating and freeing a large object uses the mheap
    // directly, bypassing the mcache and mcentral.
    //
    // If mspan.needzero is false, then free object slots in the mspan are
    // already zeroed. Otherwise if needzero is true, objects are zeroed as
    // they are allocated. There are various benefits to delaying zeroing
    // this way:
    //
    //	1. Stack frame allocation can avoid zeroing altogether.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  2. src/runtime/mheap.go

    	spanclass             spanClass     // size class and noscan (uint8)
    	state                 mSpanStateBox // mSpanInUse etc; accessed atomically (get/set methods)
    	needzero              uint8         // needs to be zeroed before allocation
    	isUserArenaChunk      bool          // whether or not this span represents a user arena
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
Back to top