Port my AOSP QuasiAtomic rewrite to art.
Change-Id: I9e8fe487b15083cfc441a90ec1ec0eb5e645229e
diff --git a/src/jdwp/jdwp_handler.cc b/src/jdwp/jdwp_handler.cc
index 355fc5e..73c70cb 100644
--- a/src/jdwp/jdwp_handler.cc
+++ b/src/jdwp/jdwp_handler.cc
@@ -1629,7 +1629,7 @@
* so waitForDebugger() doesn't return if we stall for a bit here.
*/
Dbg::GoActive();
- QuasiAtomicSwap64(0, &lastActivityWhen);
+ QuasiAtomic::Swap64(0, &lastActivityWhen);
}
/*
@@ -1698,7 +1698,7 @@
* the initial setup. Only update if this is a non-DDMS packet.
*/
if (pHeader->cmdSet != kJDWPDdmCmdSet) {
- QuasiAtomicSwap64(MilliTime(), &lastActivityWhen);
+ QuasiAtomic::Swap64(MilliTime(), &lastActivityWhen);
}
/* tell the VM that GC is okay again */