Skip to content

Commit

Permalink
[MERGE #3353 @obastemur] Debugger: keep new jobs while debugger is at…
Browse files Browse the repository at this point in the history
…tached

Merge pull request #3353 from obastemur:fix_debug

~~Fixes #3352~~

If JIT is enabled (in debug mode) force NoNative.
  • Loading branch information
obastemur committed Jul 26, 2017
2 parents a9d2418 + 0ff4a7c commit 78b3208
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Runtime/Base/ScriptContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 78b3208

Please sign in to comment.