*Address.hashCode ignore the upper 32 bits of a long value
Pavel Rappo
pavel.rappo at oracle.com
Sun Apr 4 10:50:45 UTC 2021
A better place for this email might be the serviceability-dev mailing list (CC'ed).
> On 4 Apr 2021, at 09:31, kariyam <kariyam at oss.nttdata.com> wrote:
>
> Hi,
>
> I found that sun.jvm.hotspot.debugger.*.*Address.hashCode ignore the upper 32 bits of a long value.
>
> e.g. https://github.com/openjdk/jdk/blob/3789983e89c9de252ef546a1b98a732a7d066650/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/linux/LinuxAddress.java#L56
>
> I don't think the upper 32 bits of a long value should be ignored.
> IMHO, the Long.hashCode static method is suitable for such cases.
>
> If it's worth making this change, could anyone submit this issue to JBS?
>
> I'm ready to submit a pull request, but I don't have an Author role.
>
> Please let me know if there is a better place to do so.
>
> Thanks
More information about the jdk-dev
mailing list