From 85f93c889aafa253a784362051681ee76f1d3564 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Mon, 2 Oct 2017 17:29:10 -0400 Subject: [PATCH] cmd/compile: fix some plive comments The liveness analysis no longer directly emits PCDATA. Fix stale comments that say so. Change-Id: Id26b112ddf4c13a12ebf766f64bf57c68fbfe3ef Reviewed-on: https://go-review.googlesource.com/67691 Run-TryBot: Austin Clements TryBot-Result: Gobot Gobot Reviewed-by: Matthew Dempsky --- src/cmd/compile/internal/gc/plive.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cmd/compile/internal/gc/plive.go b/src/cmd/compile/internal/gc/plive.go index 9d2dcf658f..49d0229702 100644 --- a/src/cmd/compile/internal/gc/plive.go +++ b/src/cmd/compile/internal/gc/plive.go @@ -692,7 +692,7 @@ func (lv *Liveness) epilogue() { for _, b := range lv.f.Blocks { be := lv.blockEffects(b) - // walk backward, emit pcdata and populate the maps + // walk backward, construct maps at each safe point index := int32(be.lastbitmapindex) if index < 0 { // the first block we encounter should have the ATEXT so @@ -1012,7 +1012,8 @@ Outer: } lv.livevars = lv.livevars[:uniq] - // Rewrite PCDATA instructions to use new numbering. + // Record compacted stack map indexes for each value. + // These will later become PCDATA instructions. lv.showlive(nil, lv.livevars[0]) pos := 1 lv.stackMapIndex = make(map[*ssa.Value]int) -- 2.48.1