Hotspot segfaulting on Linux SPARC
Robbin Ehn
robbin.ehn at oracle.com
Wed Apr 18 08:02:47 UTC 2018
On 2018-04-18 10:00, David Holmes wrote:
> Robbin,
>
> I think it's now fixed. There were a couple of different email threads on this.
Ok, great!
/Robbin
>
> Cheers,
> David
>
> On 18/04/2018 5:50 PM, Robbin Ehn wrote:
>> Hi,
>>
>> On 2018-04-17 23:08, John Paul Adrian Glaubitz wrote:
>>> On 04/17/2018 11:05 PM, David Holmes wrote:
>>>>> This seems to be theculprit:
>>>>> http://hg.openjdk.java.net/jdk/hs/rev/0ce0ac68ace7
>>>>
>>>> So you can run okay with -XX:-ThreadLocalHandshakes ?
>>>
>>> A HellWorld runs fine although I don't know whether that verifies anything:
>>>
>>> glaubitz at deb4g:/srv/glaubitz$
>>> hs/build/linux-sparcv9-normal-server-release/jdk/bin/java
>>> -XX:-ThreadLocalHandshakes HelloWorld
>>
>> Use something like:
>> java -Xcomp -XX:LoopStripMiningIter=1 -XX:+UseCountedLoopSafepoints
>> -XX:+SafepointALot -XX:GuaranteedSafepointInterval=1 HelloWorld
>> If you are not extremely unlucky you should hit a poll exception.
>>
>> Until sparc/Linux is fixed and tested, I suggest we remove handshake support
>> for it by something like:
>> diff -r 69d7398038c5 src/hotspot/cpu/sparc/globalDefinitions_sparc.hpp
>> --- a/src/hotspot/cpu/sparc/globalDefinitions_sparc.hpp Wed Apr 18 09:25:51
>> 2018 +0200
>> +++ b/src/hotspot/cpu/sparc/globalDefinitions_sparc.hpp Wed Apr 18 09:48:13
>> 2018 +0200
>> @@ -51,8 +51,8 @@
>> #if defined(SOLARIS)
>> #define SUPPORT_RESERVED_STACK_AREA
>> +// SPARC solaris have implemented the local polling
>> +#define THREAD_LOCAL_POLL
>> #endif
>>
>> -// SPARC have implemented the local polling
>> -#define THREAD_LOCAL_POLL
>>
>> #endif // CPU_SPARC_VM_GLOBALDEFINITIONS_SPARC_HPP
>>
>>
>> /Robbin
>>
>>
>>> Hello, World
>>> glaubitz at deb4g:/srv/glaubitz$
>>>
More information about the hotspot-dev
mailing list