RFR: 8313564: Fix -Wconversion warnings in classfile code [v4]

Dean Long dlong at openjdk.org
Thu Aug 3 11:00:36 UTC 2023


On Thu, 3 Aug 2023 01:37:08 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> This patch fixes various -Wconversion warnings in classfile code.  I broke the change into commits so the changes are easier to see.
>> Tested with tier1-4.
>
> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix Atomic items_added code.

src/hotspot/share/classfile/stringTable.cpp line 245:

> 243: 
> 244: void StringTable::item_added() {
> 245:   Atomic::inc(&_items_count);

Can this overflow?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15111#discussion_r1283031367


More information about the graal-dev mailing list