Hotspot segfaulting on Linux SPARC
David Holmes
david.holmes at oracle.com
Tue Apr 17 21:05:01 UTC 2018
On 18/04/2018 1:23 AM, John Paul Adrian Glaubitz wrote:
> On 04/17/2018 02:33 AM, David Holmes wrote:
>> Though also see:
>>
>> https://bugs.openjdk.java.net/browse/JDK-8201592
>>
>> which seems to be the same secondary crash - but can't comment on the
>> primary one.
> This seems to be theculprit:
> http://hg.openjdk.java.net/jdk/hs/rev/0ce0ac68ace7
So you can run okay with -XX:-ThreadLocalHandshakes ?
David
> And this is a potential fix, although I need to perform more testing:
>
> diff --git a/src/hotspot/os_cpu/linux_sparc/os_linux_sparc.cpp
> b/src/hotspot/os_cpu/linux_sparc/os_linux_sparc.cpp
> index ef4ae04c119..958833305d9 100644
> --- a/src/hotspot/os_cpu/linux_sparc/os_linux_sparc.cpp
> +++ b/src/hotspot/os_cpu/linux_sparc/os_linux_sparc.cpp
> @@ -373,7 +373,7 @@ inline static bool checkOverflow(sigcontext* uc,
> }
>
> inline static bool checkPollingPage(address pc, address fault,
> address* stub) {
> - if (fault == os::get_polling_page()) {
> + if (os::is_poll_address(fault)) {
> *stub = SharedRuntime::get_poll_stub(pc);
> return true;
> }
>
> Adrian
>
More information about the hotspot-dev
mailing list