JNI: Fix transition to suspended to be "release".
This fixes a braino in
https://android-review.googlesource.com/1903370 .
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: run-gtests.sh
Test: testrunner.py --target --optimizing
Bug: 172332525
Change-Id: I39c9677509987c763f03cb782053c9eec260d5c0
diff --git a/compiler/utils/x86/jni_macro_assembler_x86.cc b/compiler/utils/x86/jni_macro_assembler_x86.cc
index fc92c30..8be2a32 100644
--- a/compiler/utils/x86/jni_macro_assembler_x86.cc
+++ b/compiler/utils/x86/jni_macro_assembler_x86.cc
@@ -602,7 +602,7 @@
Register saved_eax = scratch_regs[0].AsX86().AsCpuRegister();
Register scratch = scratch_regs[1].AsX86().AsCpuRegister();
- // CAS acquire, old_value = kRunnableStateValue, new_value = kNativeStateValue, no flags.
+ // CAS release, old_value = kRunnableStateValue, new_value = kNativeStateValue, no flags.
__ movl(saved_eax, EAX); // Save EAX.
static_assert(kRunnableStateValue == 0u);
__ xorl(EAX, EAX);