Integrated: 8275712: Hashtable literal_size functions are broken
Stefan Karlsson
stefank at openjdk.java.net
Fri Oct 22 08:24:09 UTC 2021
On Thu, 21 Oct 2021 11:26:36 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> The literal_size functions are used to estimate the size of held objects in some of our hashtables.
>
> Two bugs:
> 1) They return int, but the returned value is in bytes and could be larger than MAX_INT.
> 2) Non-String objects report words instead of bytes.
>
> Manually tested by running JFR and checking the output in JMC.
This pull request has now been integrated.
Changeset: 1efe946d
Author: Stefan Karlsson <stefank at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/1efe946db77e38507511a9c898b8b59fe9ba1aeb
Stats: 33 lines in 2 files changed: 15 ins; 10 del; 8 mod
8275712: Hashtable literal_size functions are broken
Reviewed-by: coleenp, zgu
-------------
PR: https://git.openjdk.java.net/jdk/pull/6063
More information about the hotspot-dev
mailing list