RFR: 8374350: Convert hotspot gtests to use Atomic<T> [v2]
Axel Boldt-Christmas
aboldtch at openjdk.org
Fri Jan 2 10:37:00 UTC 2026
On Fri, 2 Jan 2026 10:19:59 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:
>> Kim Barrett has updated the pull request incrementally with one additional commit since the last revision:
>>
>> update copyrights
>
> test/hotspot/gtest/gc/g1/test_g1BatchedGangTask.cpp line 60:
>
>> 58: }
>> 59:
>> 60: Atomic<bool>* _do_work_called_by;
>
> Can we use `GrowableArrayCHeap<Atomic<bool>, MemTag::mtInternal>` instead, and skip the manual destruction (and element construction)?
Right Atomic are non copyable ofc. Ignore this. :)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29001#discussion_r2657483493
More information about the hotspot-dev
mailing list