Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 959506ddc2637065461155307eac97786d2ed02b..0a130e43b35d66de6a569b70a408debf120384d9 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -15478,10 +15478,10 @@ class RegExpInterruptionThread : public v8::base::Thread { |
: Thread(Options("TimeoutThread")), isolate_(isolate) {} |
virtual void Run() { |
- for (v8::base::NoBarrier_Store(®exp_interruption_data.loop_count, 0); |
- v8::base::NoBarrier_Load(®exp_interruption_data.loop_count) < 7; |
- v8::base::NoBarrier_AtomicIncrement( |
- ®exp_interruption_data.loop_count, 1)) { |
+ for (v8::base::Relaxed_Store(®exp_interruption_data.loop_count, 0); |
+ v8::base::Relaxed_Load(®exp_interruption_data.loop_count) < 7; |
+ v8::base::Relaxed_AtomicIncrement(®exp_interruption_data.loop_count, |
+ 1)) { |
// Wait a bit before requesting GC. |
v8::base::OS::Sleep(v8::base::TimeDelta::FromMilliseconds(50)); |
reinterpret_cast<i::Isolate*>(isolate_)->stack_guard()->RequestGC(); |
@@ -15498,7 +15498,7 @@ class RegExpInterruptionThread : public v8::base::Thread { |
void RunBeforeGC(v8::Isolate* isolate, v8::GCType type, |
v8::GCCallbackFlags flags) { |
- if (v8::base::NoBarrier_Load(®exp_interruption_data.loop_count) != 2) { |
+ if (v8::base::Relaxed_Load(®exp_interruption_data.loop_count) != 2) { |
return; |
} |
v8::HandleScope scope(isolate); |