Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: src/futex-emulation.cc

Issue 1321543004: [futex] Allow debugger to break in the middle of a futexWait Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enable debugging scope Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/futex-emulation.cc
diff --git a/src/futex-emulation.cc b/src/futex-emulation.cc
index b0e514e8af2a11c8094f2438fa651ed4172fb142..9cc739f7bc4b4997c373501064e3f85b6533041f 100644
--- a/src/futex-emulation.cc
+++ b/src/futex-emulation.cc
@@ -9,6 +9,7 @@
#include "src/base/macros.h"
#include "src/base/platform/time.h"
#include "src/conversions.h"
+#include "src/debug/debug.h"
#include "src/handles-inl.h"
#include "src/isolate.h"
#include "src/list-inl.h"
@@ -141,6 +142,8 @@ Object* FutexEmulation::Wait(Isolate* isolate,
// notification will wake up the condition variable. node->waiting() will
// be false, so we'll loop and then check interrupts.
if (interrupted) {
+ EnableBreakInNonDebuggable enabler(isolate->debug(), true);
+
Object* interrupt_object = isolate->stack_guard()->HandleInterrupts();
if (interrupt_object->IsException()) {
result = interrupt_object;
« src/debug/debug.cc ('K') | « src/debug/debug.cc ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698