RFR: JDK-8316778: test hprof lib: invalid array element type from JavaValueArray.elementSize [v2]

Alex Menkov amenkov at openjdk.org
Fri Sep 29 02:13:04 UTC 2023


> The change fixes 2 issues in hprof test library.
> The issue were discovered during test development (logging values of dumped heap objects).
> - JavaValueArray.elementSize cannot determine size of the array elements and throws RuntimeException: invalid array element type
> - JavaObject.toString() method for dumped String objects tries to construct string value of the object from "value" field assuming "value" field is array of char. Actually it's byte array, so toString return array values like "{65, 66, 67}" (with fixed JavaValueArray.elementSize)

Alex Menkov has updated the pull request incrementally with one additional commit since the last revision:

  Added bug tag to the test

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/15953/files
  - new: https://git.openjdk.org/jdk/pull/15953/files/2adcc81c..8cda5608

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=15953&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15953&range=00-01

  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/15953.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15953/head:pull/15953

PR: https://git.openjdk.org/jdk/pull/15953


More information about the hotspot-runtime-dev mailing list