diff options
Diffstat (limited to 'src/vm/threaddebugblockinginfo.cpp')
-rw-r--r-- | src/vm/threaddebugblockinginfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vm/threaddebugblockinginfo.cpp b/src/vm/threaddebugblockinginfo.cpp index a77c69b457..6ff0bab3e7 100644 --- a/src/vm/threaddebugblockinginfo.cpp +++ b/src/vm/threaddebugblockinginfo.cpp @@ -82,10 +82,17 @@ m_pThread(pThread) #endif //DACCESS_COMPILE // Holder destructor pops a blocking item off the blocking info stack +// NOTE: optimizations are disabled to work around a codegen bug on x86 #ifndef DACCESS_COMPILE +#ifdef _TARGET_X86_ +#pragma optimize( "", off ) +#endif // _TARGET_X86_ DebugBlockingItemHolder::~DebugBlockingItemHolder() { LIMITED_METHOD_CONTRACT; m_pThread->DebugBlockingInfo.PopBlockingItem(); } +#ifdef _TARGET_X86_ +#pragma optimize( "", on ) +#endif // _TARGET_X86_ #endif //DACCESS_COMPILE |