aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mbitmap.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/mbitmap.go')
-rw-r--r--src/runtime/mbitmap.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/mbitmap.go b/src/runtime/mbitmap.go
index 38d994eb5a..69bd0b502b 100644
--- a/src/runtime/mbitmap.go
+++ b/src/runtime/mbitmap.go
@@ -2004,10 +2004,11 @@ func getgcmask(ep interface{}) (mask []byte) {
if targetpc == 0 {
return
}
+ pcdata := int32(-1) // Use the entry map at function entry
if targetpc != f.entry {
targetpc--
+ pcdata = pcdatavalue(f, _PCDATA_StackMapIndex, targetpc, nil)
}
- pcdata := pcdatavalue(f, _PCDATA_StackMapIndex, targetpc, nil)
if pcdata == -1 {
return
}