[15] RFR (M): 8238681: Make -XX:UseSSE flag x86-specific

Vladimir Kozlov vladimir.kozlov at oracle.com
Fri Feb 14 17:44:04 UTC 2020


I am fine with -XX:+IgnoreUnrecognizedVMOptions. I am for testing on more platforms ;)

Thanks,
Vladimir K

On 2/14/20 8:10 AM, Vladimir Ivanov wrote:
> Thanks for the feedback, Vladimir.
> 
>> compiler/c1/Test6579789.java and compiler/c1/Test6855215.java use UseSSE flag without @requires.
> 
> Good catch. But I'm not sure @requires [1] is the best option here:
> 
>     * -XX:UseSSE=0 has any effect only on x86-32;
> 
>     * both bugs were reported against x86-32, but at least 6579789 is not platform-specific. So it 
> makes sense to run the tests on other platforms.
> 
> So, I'd prefer to use -XX:+IgnoreUnrecognizedVMOptions instead. What's your take on it?
> 
> Best regards,
> Vladimir Ivanov
> 
> [1]
> diff --git a/test/hotspot/jtreg/compiler/c1/Test6579789.java 
> b/test/hotspot/jtreg/compiler/c1/Test6579789.java
> --- a/test/hotspot/jtreg/compiler/c1/Test6579789.java
> +++ b/test/hotspot/jtreg/compiler/c1/Test6579789.java
> @@ -26,6 +26,8 @@
>    * @bug 6579789
>    * @summary Internal error "c1_LinearScan.cpp:1429 Error: assert(false,"")" in debuggee with 
> fastdebug VM
>    *
> + * @requires os.arch=="i386"
> + *
>    * @run main/othervm -Xcomp -XX:UseSSE=0
>    *      -XX:CompileCommand=compileonly,compiler.c1.Test6579789::bug
>    *      compiler.c1.Test6579789
> diff --git a/test/hotspot/jtreg/compiler/c1/Test6855215.java 
> b/test/hotspot/jtreg/compiler/c1/Test6855215.java
> --- a/test/hotspot/jtreg/compiler/c1/Test6855215.java
> +++ b/test/hotspot/jtreg/compiler/c1/Test6855215.java
> @@ -26,6 +26,8 @@
>    * @bug 6855215
>    * @summary Calculation error (NaN) after about 1500 calculations
>    *
> + * @requires os.arch=="i386"
> + *
>    * @run main/othervm -Xbatch -XX:UseSSE=0 compiler.c1.Test6855215
>    */
> 
> 
>>
>> Otherwise changes seems good.
>>
>> Thanks,
>> Vladimir
>>
>> On 2/10/20 6:19 AM, Vladimir Ivanov wrote:
>>> http://cr.openjdk.java.net/~vlivanov/8238681/webrev.00/
>>> https://bugs.openjdk.java.net/browse/JDK-8238681
>>>
>>> Turn UseSSE into x86-specific flag since it doesn't have any meaning on non-x86 platforms.
>>>
>>> As a cleanup, I made all the code which assumes UseSSE<2 x86-32 specific. (x86-64 ABI requires 
>>> SSE2.)
>>>
>>> Also, as a precaution, I made UseSSE obsolete on non-x86 platforms.
>>>
>>> Testing: hs-precheckin-comp, tier1-5, linux x86-32 fastdebug build.
>>>
>>> Thanks!
>>>
>>> Best regards,
>>> Vladimir Ivanov


More information about the hotspot-dev mailing list