aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc.go
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2022-09-07 20:33:06 +0000
committerGopher Robot <gobot@golang.org>2022-09-08 16:06:04 +0000
commit51c34e2f0b51e62ba195a90fa1c1a8d5be83e2dd (patch)
tree383e8fbb5234382b8f0b2717ac7ec3de1791cb42 /src/runtime/malloc.go
parent2caaad942e15c148bfce33e06baa03d3a1557fcd (diff)
downloadgo-51c34e2f0b51e62ba195a90fa1c1a8d5be83e2dd.tar.xz
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>
Diffstat (limited to 'src/runtime/malloc.go')
-rw-r--r--src/runtime/malloc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go
index 205c6d44a8..f2b93c04f4 100644
--- a/src/runtime/malloc.go
+++ b/src/runtime/malloc.go
@@ -1052,8 +1052,8 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
}
}
- var scanSize uintptr
if !noscan {
+ var scanSize uintptr
heapBitsSetType(uintptr(x), size, dataSize, typ)
if dataSize > typ.size {
// 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
// a race marking the bit.
if gcphase != _GCoff {
- gcmarknewobject(span, uintptr(x), size, scanSize)
+ gcmarknewobject(span, uintptr(x), size)
}
if raceenabled {