8167421: AArch64: in one core system, fatal error: Illegal threadstate encountered

Adding missing thread state store when os::is_MP() is false

Reviewed-by: aph
This commit is contained in:
Hui Shi 2016-10-17 05:44:43 -07:00
parent 993bfb6565
commit ecccfb5c76

View File

@ -1962,6 +1962,8 @@ nmethod* SharedRuntime::generate_native_wrapper(MacroAssembler* masm,
// due to cache line collision.
__ serialize_memory(rthread, r2);
}
} else {
__ strw(rscratch1, Address(rthread, JavaThread::thread_state_offset()));
}
// check for safepoint operation in progress and/or pending suspend requests