Index: src/debug/debug.cc |
diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
index f257f67e29c2975e0529257a1e424091af0e633d..fd2dcc37d5289d2d38605cc039648f4a2c8c5e45 100644 |
--- a/src/debug/debug.cc |
+++ b/src/debug/debug.cc |
@@ -402,8 +402,8 @@ void Debug::ThreadInit() { |
thread_local_.async_task_count_ = 0; |
clear_suspended_generator(); |
thread_local_.restart_fp_ = nullptr; |
- base::NoBarrier_Store(&thread_local_.current_debug_scope_, |
- static_cast<base::AtomicWord>(0)); |
+ base::Relaxed_Store(&thread_local_.current_debug_scope_, |
+ static_cast<base::AtomicWord>(0)); |
UpdateHookOnFunctionCall(); |
} |
@@ -2225,8 +2225,8 @@ DebugScope::DebugScope(Debug* debug) |
no_termination_exceptons_(debug_->isolate_, |
StackGuard::TERMINATE_EXECUTION) { |
// Link recursive debugger entry. |
- base::NoBarrier_Store(&debug_->thread_local_.current_debug_scope_, |
- reinterpret_cast<base::AtomicWord>(this)); |
+ base::Relaxed_Store(&debug_->thread_local_.current_debug_scope_, |
+ reinterpret_cast<base::AtomicWord>(this)); |
// Store the previous break id, frame id and return value. |
break_id_ = debug_->break_id(); |
@@ -2250,8 +2250,8 @@ DebugScope::DebugScope(Debug* debug) |
DebugScope::~DebugScope() { |
// Leaving this debugger entry. |
- base::NoBarrier_Store(&debug_->thread_local_.current_debug_scope_, |
- reinterpret_cast<base::AtomicWord>(prev_)); |
+ base::Relaxed_Store(&debug_->thread_local_.current_debug_scope_, |
+ reinterpret_cast<base::AtomicWord>(prev_)); |
// Restore to the previous break state. |
debug_->thread_local_.break_frame_id_ = break_frame_id_; |