Withdrawn: JDK-8305090: Some NMT tests broken when running under ASan

duke duke at openjdk.org
Thu Jun 1 00:16:15 UTC 2023


On Tue, 28 Mar 2023 15:05:41 GMT, Justin King <jcking at openjdk.org> wrote:

> This change fixes or skips some NMT tests when running under ASan, as well as fixing a leak.
> 
> - `allocator_may_return_null=1` is added as the default is `0`, meaning ASan will never return `nullptr` and will instead crash. NMT tests check that large allocations return `nullptr` so those do not work under ASan currently.
> - We skip tests that intentionally access memory outside the allocated range or do things that ASan will catch, causing the tests to fail.
> - Fix a memory leak in `test_nmtpreinit.cpp`.
> - Enable coredumps to work on some platforms with ASan, some other tests rely on this working.
> 
> All of this is related to ASan and NMT, so I opted to do it in a single change.

This pull request has been closed without being integrated.

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

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



More information about the build-dev mailing list