On Thu, 2 Feb 2023 06:06:04 GMT, David Holmes <[email protected]> wrote:
>> src/hotspot/share/runtime/arguments.cpp line 3979:
>>
>>> 3977: // LSAN relies on pointers to be natively aligned. Using compressed
>>> class pointers breaks this
>>> 3978: // expectation and results in nondeterministic leak reports.
>>> 3979: if (FLAG_SET_CMDLINE(UseCompressedOops, false) != JVMFlag::SUCCESS)
>>> {
>>
>> This positioning doesn't look right. There are a number of
>> inter-dependencies on the compressed oops flags and I don't think you can
>> just turn them off here. Surely `Arguments::set_use_compressed_oops()` is
>> where this needs to be done?
>
> Not sure FLAG_SET_CMDLINE is right here either (but flag setting is very
> confusing).
Removed, no longer needed. I'll explain below.
-------------
PR: https://git.openjdk.org/jdk/pull/12229