Integrated: JDK-8316778: test hprof lib: invalid array element type from JavaValueArray.elementSize

Alex Menkov amenkov at openjdk.org
Tue Oct 3 20:23:18 UTC 2023


On Wed, 27 Sep 2023 21:34:37 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> 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)

This pull request has now been integrated.

Changeset: f7deaf4b
Author:    Alex Menkov <amenkov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f7deaf4bef21cb86fcc8a6c10454fbd6bbbba2d9
Stats:     196 lines in 3 files changed: 185 ins; 0 del; 11 mod

8316778: test hprof lib: invalid array element type from JavaValueArray.elementSize

Reviewed-by: cjplummer, lmesnik, sspitsyn

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

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


More information about the serviceability-dev mailing list