[aarch64-port-dev ] RFR(XS): 8167421: AArch64: in one core system, fatal error: Illegal threadstate encountered

Andrew Haley aph at redhat.com
Sun Oct 16 09:19:27 UTC 2016


Hi,

On 15/10/16 11:34, Hui Shi wrote:

> Could someone help review this fix?
> 
> JIRA: https://bugs.openjdk.java.net/browse/JDK-8167421
> webrev: http://cr.openjdk.java.net/~hshi/8167421/webrev/
> 
> JVM crashes with illegal threadstate when running on single core machine
> (for example with single core VM running on aarch64 box).
> Current JNI wrapper generator missing store _thread_in_native_trans into
> thread state when machine has only one CPU core.

Oh, yuck.  Thanks.

I'd accept (and prefer) a patch which got rid of the is_MP() check
altogether.  These days systems are often virtualized, and running
processes can be migrated from one system to another.  In such
circumstances, is_MP() is just a bug.  But that needs wider discussion
because it affects more systems than just AArch64, so your patch is OK
for now.

Andrew.


More information about the aarch64-port-dev mailing list