RFR: 8275712: Hashtable literal_size functions are broken
Stefan Karlsson
stefank at openjdk.java.net
Thu Oct 21 12:23:19 UTC 2021
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.
-------------
Commit messages:
- Remove tab
- 8275712: Hashtable literal_size functions are broken
Changes: https://git.openjdk.java.net/jdk/pull/6063/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6063&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8275712
Stats: 33 lines in 2 files changed: 15 ins; 10 del; 8 mod
Patch: https://git.openjdk.java.net/jdk/pull/6063.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/6063/head:pull/6063
PR: https://git.openjdk.java.net/jdk/pull/6063
More information about the hotspot-dev
mailing list