Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for gcmarknewobject (0.34 sec)

  1. src/runtime/mgcmark.go

    		}
    		print("\n")
    	}
    	if skipped {
    		print(" ...\n")
    	}
    }
    
    // gcmarknewobject marks a newly allocated object black. obj must
    // not contain any non-nil pointers.
    //
    // This is nosplit so it can manipulate a gcWork without preemption.
    //
    //go:nowritebarrier
    //go:nosplit
    func gcmarknewobject(span *mspan, obj uintptr) {
    	if useCheckmark { // The world should be stopped so this should not happen.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  2. src/runtime/malloc.go

    	// Allocate black during GC.
    	// All slots hold nil so no scanning is needed.
    	// This may be racing with GC so do it atomically if there can be
    	// a race marking the bit.
    	if gcphase != _GCoff {
    		gcmarknewobject(span, uintptr(x))
    	}
    
    	if raceenabled {
    		racemalloc(x, size)
    	}
    
    	if msanenabled {
    		msanmalloc(x, size)
    	}
    
    	if asanenabled {
    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