[jdk21u-dev] RFR: 8324678: Replace NULL with nullptr in HotSpot gtests [v2]
Matthias Baesken
mbaesken at openjdk.org
Thu Mar 13 14:34:04 UTC 2025
On Wed, 12 Mar 2025 21:20:33 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:
>> test/hotspot/gtest/compiler/test_directivesParser.cpp
>> 8327986: ASAN reports use-after-free in DirectivesParserTest.empty_object_vm
>> was already backported.
>> Failed chunk not applicable, skipped.
>>
>> test/hotspot/gtest/gc/shared/test_bufferNodeAllocator.cpp
>> History of this file differs in a row of changes.
>> But here only Copyright needs to be resolved.
>>
>> I backport this for parity with 21.0.8-oracle.
>>
>> I don't really see why this was backported. But let's go
>> along anyways, this is test-only coding and just a bit
>> tedious to prepare. But it might make later backports
>> much easier.
>>
>> Resolved files in detail:
>>
>> test/hotspot/gtest/jfr/test_adaptiveSampler.cpp
>> 8313552: Fix -Wconversion warnings in JFR code
>> missing in 21. This change sounds like a nice-to-have in 21,
>> but it is large.
>>
>> test/hotspot/gtest/logging/test_logConfiguration.cpp
>> test/hotspot/gtest/logging/test_logTagSet.cpp
>> 8299825: Move StdoutLog and StderrLog to LogConfiguration
>> missing in 21. Adapted all remaining NULLs.
>>
>>
>> test/hotspot/gtest/metaspace/test_binlist.cpp
>> 8307356: Metaspace: simplify BinList handling
>> missing in 21. Not a candidate for backport.
>> One trivial resolve.
>>
>>
>> test/hotspot/gtest/metaspace/test_metaspacearena_stress.cpp
>> 8307356: Metaspace: simplify BinList handling
>> 8314654: Metaspace: move locking out of MetaspaceArena
>> missing in 21. Not candidates for backport.
>> Resolved and flipped one additional NULL.
>>
>> test/hotspot/gtest/runtime/test_os_linux.cpp
>> 8261894: Remove support for UseSHM
>> not in 21 and not a candidate, and later change
>> 8341722: Fix some warnings as errors when building on Linux with toolchain clang
>> was already backported.
>> Resolved all remaining NULLs.
>
> Goetz Lindenmaier has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
>
> Backport c1281e6b45ed167df69d29a6039d81854c145ae6
Except the remaining NULL I mentioned above, looks okay to me!
test/hotspot/gtest/logging/test_logTagSet.cpp line 1:
> 1: /*
EXPECT_FALSE(ts.has_output(NULL));
on line 51 has still a NULL remaining this was adjusted in the original commit
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1476#issuecomment-2721475288
PR Review Comment: https://git.openjdk.org/jdk21u-dev/pull/1476#discussion_r1993534439
More information about the jdk-updates-dev
mailing list