Integrated: JDK-8305414: gtest/NMTGtests.java is failing various sub-tests

Thomas Stuefe stuefe at openjdk.org
Thu Apr 13 07:51:06 UTC 2023


On Mon, 3 Apr 2023 12:31:17 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> With [JDK-8304815](https://bugs.openjdk.org/browse/JDK-8304815) we started to use NMT - if enabled - for better hs-err reporting by asking it to make sense out of otherwise unknown memory locations.
> 
> If the location points into or nearby a C-heap block, we now see that. That even works for dead blocks (use after free). For details, see JDK-8304815 and the comments in mallocTracker.cpp.
> 
> The change came with its own gtest, which promptly started to fail on some platforms. The reason was an error in MallocTracker::print_pointer_information() that caused us to prematurely return from its search-loop if we encounter unmapped memory. Never happened in my tests, but of course depends on where libc places the test blocks, which makes this error intermittent.
> 
> Patch fixes that, and also fixes some debug output in the test.
> 
> Tests: Ran the test manually on Linux aarch64; was able to reproduce the errors without patch, no errors with patch.

This pull request has now been integrated.

Changeset: fb9a29d7
Author:    Thomas Stuefe <stuefe at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fb9a29d732fdebc2114d1497d461accc97268953
Stats:     12 lines in 2 files changed: 0 ins; 0 del; 12 mod

8305414: gtest/NMTGtests.java is failing various sub-tests

Reviewed-by: rkennke, adinn

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

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


More information about the hotspot-runtime-dev mailing list