changeset 9340:be4aeaa327f7 icedtea-3.2.0

8167421, PR3220: AArch64: in one core system, fatal error: Illegal threadstate encountered Summary: adding missing thread state store when os::is_MP() is false Reviewed-by: aph
author hshi
date Mon, 17 Oct 2016 05:44:43 -0700
parents 774cbefbcfab
children 9891ed8bfe12
files src/cpu/aarch64/vm/sharedRuntime_aarch64.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/aarch64/vm/sharedRuntime_aarch64.cpp	Wed Oct 12 12:24:41 2016 +0000
+++ b/src/cpu/aarch64/vm/sharedRuntime_aarch64.cpp	Mon Oct 17 05:44:43 2016 -0700
@@ -1942,6 +1942,8 @@
       // 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