*Address.hashCode ignore the upper 32 bits of a long value
kariyam
kariyam at oss.nttdata.com
Sun Apr 4 08:31:09 UTC 2021
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