RFR: 8309751: Duplicate constant pool entries added during default method processing [v2]
David Holmes
dholmes at openjdk.org
Thu Apr 4 04:41:09 UTC 2024
On Tue, 2 Apr 2024 22:07:15 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> Value is essentially (uintptr_t)utf8, or (uintptr_t)u2klass|u4name_and_type, or (uintptr_t)u2klass|u4methodref; ie the value of the fields that are in the union.
>
> Look at equals:
>
> static bool equals(BytecodeCPEntry const& e0, BytecodeCPEntry const& e1) {
> return e0._tag == e1._tag && e0._u.value == e1._u.value;
> }
That is technically undefined behaviour.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18548#discussion_r1550911746
More information about the hotspot-runtime-dev
mailing list