Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/runtime/malloc.go

    	// the caller can make x observable to the garbage
    	// collector. Otherwise, on weakly ordered machines,
    	// the garbage collector could follow a pointer to x,
    	// but see uninitialized memory or stale heap bits.
    	publicationBarrier()
    	// As x and the heap bits are initialized, update
    	// freeIndexForScan now so x is seen by the GC
    	// (including conservative scan) as an allocated object.
    	// While this pointer can't escape into user code as a
    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

    		// Update related page sweeper stats.
    		h.pagesInUse.Add(npages)
    	}
    
    	// Make sure the newly allocated span will be observed
    	// by the GC before pointers into the span are published.
    	publicationBarrier()
    }
    
    // Try to add at least npage pages of memory to the heap,
    // returning how much the heap grew by and whether it worked.
    //
    // h.lock must be held.
    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