From 6a4f6f3d5908325fbba0377cbe192d051a5f1a83 Mon Sep 17 00:00:00 2001 From: lin Date: Tue, 23 Feb 2021 11:11:43 +0800 Subject: [PATCH] Fix: find heap ptr --- internal/gocore/process.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gocore/process.go b/internal/gocore/process.go index 25d083b..d320167 100644 --- a/internal/gocore/process.go +++ b/internal/gocore/process.go @@ -259,9 +259,9 @@ func (p *Process) readHeap() { n := bitmap.ArrayLen() for i := int64(0); i < n; i++ { m := bitmap.ArrayIndex(i).Uint8() - for j := int64(0); j < 8; j++ { + for j := int64(0); j < 4; j++ { if m>>uint(j)&1 != 0 { - p.setHeapPtr(min.Add((i*8 + j) * ptrSize)) + p.setHeapPtr(min.Add((i*4 + j) * ptrSize)) } } }