Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 2a01e3e55e38e3de4d1cc4c0f70c868992d0674b..f33e06061972154bbe6be6df39971274338c47e3 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -2434,7 +2434,7 @@ std::unique_ptr<SerializationData> Worker::GetMessage() { |
while (!out_queue_.Dequeue(&result)) { |
// If the worker is no longer running, and there are no messages in the |
// queue, don't expect any more messages from it. |
- if (!base::NoBarrier_Load(&running_)) break; |
+ if (!base::Relaxed_Load(&running_)) break; |
out_semaphore_.Wait(); |
} |
return result; |
@@ -2442,7 +2442,7 @@ std::unique_ptr<SerializationData> Worker::GetMessage() { |
void Worker::Terminate() { |
- base::NoBarrier_Store(&running_, false); |
+ base::Relaxed_Store(&running_, false); |
// Post NULL to wake the Worker thread message loop, and tell it to stop |
// running. |
PostMessage(NULL); |