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

Unified Diff: test/cctest/test-api.cc

Issue 2912773002: Rename "NoBarrier" memory operations to "Relaxed". (Closed)
Patch Set: comment Created 3 years, 7 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:
Download patch
« no previous file with comments | « test/cctest/cctest.cc ('k') | test/cctest/test-atomicops.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(&regexp_interruption_data.loop_count, 0);
- v8::base::NoBarrier_Load(&regexp_interruption_data.loop_count) < 7;
- v8::base::NoBarrier_AtomicIncrement(
- &regexp_interruption_data.loop_count, 1)) {
+ for (v8::base::Relaxed_Store(&regexp_interruption_data.loop_count, 0);
+ v8::base::Relaxed_Load(&regexp_interruption_data.loop_count) < 7;
+ v8::base::Relaxed_AtomicIncrement(&regexp_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(&regexp_interruption_data.loop_count) != 2) {
+ if (v8::base::Relaxed_Load(&regexp_interruption_data.loop_count) != 2) {
return;
}
v8::HandleScope scope(isolate);
« no previous file with comments | « test/cctest/cctest.cc ('k') | test/cctest/test-atomicops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698