mirror of
				https://github.com/golang/go.git
				synced 2025-11-04 02:30:57 +00:00 
			
		
		
		
	runtime: remove unused scanSize parameter to gcmarknewobject
This was left over from the old pacer, and never removed when the old pacer was removed in Go 1.19. Change-Id: I79e5f0420c6100c66bd06129a68f5bbab7c1ea8f Reviewed-on: https://go-review.googlesource.com/c/go/+/429256 Reviewed-by: Keith Randall <khr@google.com> Run-TryBot: Michael Knyszek <mknyszek@google.com> Auto-Submit: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
		
							parent
							
								
									2caaad942e
								
							
						
					
					
						commit
						51c34e2f0b
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -1052,8 +1052,8 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	var scanSize uintptr
 | 
					 | 
				
			||||||
	if !noscan {
 | 
						if !noscan {
 | 
				
			||||||
 | 
							var scanSize uintptr
 | 
				
			||||||
		heapBitsSetType(uintptr(x), size, dataSize, typ)
 | 
							heapBitsSetType(uintptr(x), size, dataSize, typ)
 | 
				
			||||||
		if dataSize > typ.size {
 | 
							if dataSize > typ.size {
 | 
				
			||||||
			// Array allocation. If there are any
 | 
								// Array allocation. If there are any
 | 
				
			||||||
| 
						 | 
					@ -1081,7 +1081,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
 | 
				
			||||||
	// This may be racing with GC so do it atomically if there can be
 | 
						// This may be racing with GC so do it atomically if there can be
 | 
				
			||||||
	// a race marking the bit.
 | 
						// a race marking the bit.
 | 
				
			||||||
	if gcphase != _GCoff {
 | 
						if gcphase != _GCoff {
 | 
				
			||||||
		gcmarknewobject(span, uintptr(x), size, scanSize)
 | 
							gcmarknewobject(span, uintptr(x), size)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if raceenabled {
 | 
						if raceenabled {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1563,7 +1563,7 @@ func gcDumpObject(label string, obj, off uintptr) {
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//go:nowritebarrier
 | 
					//go:nowritebarrier
 | 
				
			||||||
//go:nosplit
 | 
					//go:nosplit
 | 
				
			||||||
func gcmarknewobject(span *mspan, obj, size, scanSize uintptr) {
 | 
					func gcmarknewobject(span *mspan, obj, size uintptr) {
 | 
				
			||||||
	if useCheckmark { // The world should be stopped so this should not happen.
 | 
						if useCheckmark { // The world should be stopped so this should not happen.
 | 
				
			||||||
		throw("gcmarknewobject called while doing checkmark")
 | 
							throw("gcmarknewobject called while doing checkmark")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue