Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 7c3fd66

Browse files
committed
SetEnv MONO_DEBUG=disable_omit_fp
This option tells Mono Jitter to set FramePointer register for managed stack frames, this register is important for native profilers and other native tools when unwinding call stack otherwise they don't know how to continue unwinding past managed stack frame and bail... I asked mono performance/benchmark team to run their tests with and without this environment variable and results were same, hence conclusion is there is no performance difference. This will help with getting before sampling data when using "Profile for 5 seconds" and other similar tools.
1 parent 5318697 commit 7c3fd66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/build/MacOSX/monostub.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@
292292
setenv ("MONO_THREADS_SUSPEND", "preemptive", 0);
293293

294294
setenv ("MONO_GC_PARAMS", "major=marksweep-conc,nursery-size=8m", 0);
295+
296+
setenv ("MONO_DEBUG", "disable_omit_fp", 0);
295297

296298
void *libmono = dlopen ("libmonosgen-2.0.dylib", RTLD_LAZY);
297299

0 commit comments

Comments
 (0)