RFR: 8281213: Unsafe uses of long and size_t in MemReporterBase::diff_in_current_scale
Thomas Stuefe
stuefe at openjdk.org
Thu Dec 8 09:54:10 UTC 2022
On Thu, 8 Dec 2022 09:38:30 GMT, Afshin Zafari <duke at openjdk.org> wrote:
> int64_t is typedef'ed as `long`. To be portable to Windows, it should be as `__int64`. What to do?
Its not. Hotspot defines its own variants. int/uint64 are always 64-bit, on all platforms.
https://github.com/openjdk/jdk/blob/073897c88bbc430e8751a18baf7487f6474fd0c3/src/hotspot/share/utilities/globalDefinitions_visCPP.hpp#L83
-------------
PR: https://git.openjdk.org/jdk/pull/11514
More information about the hotspot-runtime-dev
mailing list