Hotspot segfaulting on Linux SPARC

Kim Barrett kim.barrett at oracle.com
Thu Apr 12 21:04:10 UTC 2018


> On Apr 9, 2018, at 11:03 AM, Thomas Stüfe <thomas.stuefe at gmail.com> wrote:
> 
> VM_Version::determine_features() needs a code blob, and hence
> ResourceMark, on sparc and ppc and s390 I think.
> 
> But I think the reason that only sparc fails is that
> VM_Version::determine_features() is called too early on Sparc (as part of
> os::init_before_ergo()). The other platforms call that function later in
> initialization (VM_Version_init() -> init_globals()). Could that be the
> error, and if yes, could  VM_Version::determine_features()  be delayed?

This sounded familiar to me, so I looked into the history of that placement.
init_before_ergo was created specifically to call determine_features that early:

https://bugs.openjdk.java.net/browse/JDK-8133023



More information about the hotspot-dev mailing list