RFR: 8339535: JVM crashes with -Xshare:dump -XX:+SegmentedCodeCache

Ioi Lam iklam at openjdk.org
Tue Dec 3 23:17:39 UTC 2024


On Tue, 3 Dec 2024 22:24:50 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> `CDSConfig::check_vm_args_consistency()` should be called before `CompilerConfig::check_args_consistency(status)`
>> 
>> I also made `patch_mod_javabase` into a global, so that it doesn't need to be passed around.
>
> src/hotspot/share/runtime/arguments.cpp line 1783:
> 
>> 1781:   if (!CDSConfig::check_vm_args_consistency(patch_mod_javabase, mode_flag_cmd_line)) {
>> 1782:     return false;
>> 1783:   }
> 
> `check_vm_args_consistency` is only directly referenced in this file now. Can it be declared as local `static`?

`Arguments::check_vm_args_consistency()` is also called from jvmFlag.cpp so we can't make it local to arguments.cpp.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22527#discussion_r1868488074


More information about the hotspot-runtime-dev mailing list