Skip to content

Commit

Permalink
rebase on go patch
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Aug 10, 2024
1 parent eba86f2 commit 1d9446e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cannon/mipsevm/program/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 1d9446e

Please sign in to comment.