From 1d9446e0784c1b2a9ef173a140fddf9a9dcaad49 Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 10 Aug 2024 08:39:07 -0600 Subject: [PATCH] rebase on go patch --- cannon/mipsevm/program/patch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cannon/mipsevm/program/patch.go b/cannon/mipsevm/program/patch.go index b59a3a43566c..8210b4abd466 100644 --- a/cannon/mipsevm/program/patch.go +++ b/cannon/mipsevm/program/patch.go @@ -47,7 +47,7 @@ func PatchGo(f *elf.File, st mipsevm.FPVMState) error { return fmt.Errorf("failed to patch Go runtime.gcenable: %w", err) } case "runtime.MemProfileRate": - if err := st.GetMemory().SetMemoryRange(uint32(s.Value), bytes.NewReader(make([]byte, 4))); err != nil { // disable mem profiling, to avoid a lot of unnecessary floating point ops + if err := st.GetMemory().SetMemoryRange(uint64(s.Value), bytes.NewReader(make([]byte, 8))); err != nil { // disable mem profiling, to avoid a lot of unnecessary floating point ops return err } }