RFR(XXS) 8230385 [cds] No message is logged when shared image cannot be used due to mismatched configuration

David Holmes david.holmes at oracle.com
Wed Nov 27 21:39:51 UTC 2019


On 28/11/2019 4:32 am, Thomas Stüfe wrote:
> Looks good Ioi. I'm surprised UL works this early.

I'm also surprised. no_shared_spaces() is called from three different 
paths - will they all work? It is hard to see by code inspection.

Cheers,
David

> Cheers, Thomas
> 
> On Wed, Nov 27, 2019 at 7:29 PM Ioi Lam <ioi.lam at oracle.com> wrote:
> 
>> https://bugs.openjdk.java.net/browse/JDK-8230385
>>
>> http://cr.openjdk.java.net/~iklam/jdk14/8230385-log-when-cds-is-disabled.v01/
>>
>> Please review this one-liner addition that prints a log message when CDS
>> cannot be used. Output:
>>
>> $ java -XX:-UseCompressedOops -Xlog:cds -version
>> [0.001s][info][cds] Unable to use shared archive: UseCompressedOops and
>> UseCompressedClassPointers must be on for UseSharedSpaces.
>> java version "14-internal" 2020-03-17
>> Java(TM) SE Runtime Environment (fastdebug build
>> 14-internal+0-adhoc.iklam.open)
>> Java HotSpot(TM) 64-Bit Server VM (fastdebug build
>> 14-internal+0-adhoc.iklam.open, mixed mode)
>>
>> Thanks
>> - Ioi
>>


More information about the hotspot-runtime-dev mailing list