RFR: 8266891: Provide a switch to force the class space to a specific location

Thomas Stuefe stuefe at openjdk.java.net
Tue Jun 8 12:15:17 UTC 2021


On Thu, 27 May 2021 00:44:47 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> This seems good. Small comment. Were you going to add a test or did you want this to test manually?

Thank you Coleen. I'll add a test in a follow up RFE.

> src/hotspot/share/memory/metaspace.cpp line 716:
> 
>> 714:     // this may fail, in which case the VM will exit after printing an appropiate message.
>> 715:     // Tests using this switch should cope with that.
>> 716:     if (!FLAG_IS_DEFAULT(CompressedClassSpaceBaseAddress) && CompressedClassSpaceBaseAddress != 0) {
> 
> Don't you just have to test if CompressedClassSpaceBaseAddress != 0 , since that's the default if not set?

Makes sense, I'll change that.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3969


More information about the hotspot-runtime-dev mailing list