Commit 53107447 authored by Maggie Chen's avatar Maggie Chen Committed by Commit Bot

GPU watchdog: Restore NoBarrier_Load for reading the arm/disarm counter

Release_Load() was used for an experiment. Now it's not needed. Change
it back to Nobarrier_Load().

Bug:949839

Change-Id: I32faf515046b52a46165c741b80fd5bed1aea13c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144681
Commit-Queue: Maggie Chen <magchen@chromium.org>
Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758043}
parent 25d16a19
......@@ -405,11 +405,11 @@ void GpuWatchdogThreadImplV2::InProgress() {
bool GpuWatchdogThreadImplV2::IsArmed() {
// It's an odd number.
return base::subtle::Release_Load(&arm_disarm_counter_) & 1;
return base::subtle::NoBarrier_Load(&arm_disarm_counter_) & 1;
}
base::subtle::Atomic32 GpuWatchdogThreadImplV2::ReadArmDisarmCounter() {
return base::subtle::Release_Load(&arm_disarm_counter_);
return base::subtle::NoBarrier_Load(&arm_disarm_counter_);
}
// Running on the watchdog thread.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment