Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Karlaš <david.karlas@gmail.com>2019-12-07 18:59:28 +0300
committerDavid Karlaš <david.karlas@gmail.com>2019-12-07 18:59:28 +0300
commit7c3fd669dbe32468b9904ef9a887decc31d528ac (patch)
tree496773c9a1ec78ac99fd188150f42998acdfffd6 /main/build
parent531869741e5cb3a3d336a0e81395c36dd72aa4b6 (diff)
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.
Diffstat (limited to 'main/build')
-rw-r--r--main/build/MacOSX/monostub.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/build/MacOSX/monostub.mm b/main/build/MacOSX/monostub.mm
index ef57c566f3..bab07f5967 100644
--- a/main/build/MacOSX/monostub.mm
+++ b/main/build/MacOSX/monostub.mm
@@ -292,6 +292,8 @@ main (int argc, char **argv)
setenv ("MONO_THREADS_SUSPEND", "preemptive", 0);
setenv ("MONO_GC_PARAMS", "major=marksweep-conc,nursery-size=8m", 0);
+
+ setenv ("MONO_DEBUG", "disable_omit_fp", 0);
void *libmono = dlopen ("libmonosgen-2.0.dylib", RTLD_LAZY);