From 60ce06f472971438aa32091077ac6ab316ac868a Mon Sep 17 00:00:00 2001 From: chakrabot Date: Thu, 27 Jul 2017 03:01:47 -0700 Subject: [PATCH] [Merge Microsoft/Chakracore@78b3208be5] [MERGE #3353 @obastemur] Debugger: keep new jobs while debugger is attached Merge pull request #3353 from obastemur:fix_debug ~~Fixes #3352~~ If JIT is enabled (in debug mode) force NoNative. --- deps/chakrashim/core/lib/Runtime/Base/ScriptContext.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deps/chakrashim/core/lib/Runtime/Base/ScriptContext.cpp b/deps/chakrashim/core/lib/Runtime/Base/ScriptContext.cpp index 6305c35fbc1..6edfb02d693 100644 --- a/deps/chakrashim/core/lib/Runtime/Base/ScriptContext.cpp +++ b/deps/chakrashim/core/lib/Runtime/Base/ScriptContext.cpp @@ -3149,7 +3149,13 @@ namespace Js } autoRestore(this->GetThreadContext()); + // xplat-todo: (obastemur) Enable JIT on Debug mode + // CodeGen entrypoint can be deleted before we are able to unregister + // due to how we handle xdata on xplat, resetting the entrypoints below might affect CodeGen process. + // it is safer (on xplat) to turn JIT off during Debug for now. +#ifdef _WIN32 if (!Js::Configuration::Global.EnableJitInDebugMode()) +#endif { if (attach) {