*Address.hashCode ignore the upper 32 bits of a long value

Mitsuru Kariya kariyam at oss.nttdata.com
Sun Apr 4 16:38:50 UTC 2021


Thank you for your advice.

I subscribed serviceability-dev mailing list.


2021-04-04 19:50 に Pavel Rappo さんは書きました:
> 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