From 3258a5b338b5a3628e07b7d138cafdd2c1f144ab Mon Sep 17 00:00:00 2001 From: MBaesken Date: Fri, 1 Aug 2025 15:01:10 +0200 Subject: [PATCH 1/2] JDK-8364514 --- .../jtreg/runtime/jni/checked/TestCharArrayReleasing.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java b/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java index 7cb427cebbbfd..39866ea055980 100644 --- a/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java +++ b/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java @@ -25,6 +25,8 @@ * @test * @bug 8357601 * @requires vm.flagless + * @comment array was allocated with raw malloc, this causes expected heap buffer issues and triggers asan + * @requires !vm.asan * @library /test/lib * @run main/othervm/native TestCharArrayReleasing 0 0 * @run main/othervm/native TestCharArrayReleasing 1 0 From 644b4d10ed9369d58604e7ac1a0fd62d9160599b Mon Sep 17 00:00:00 2001 From: MBaesken Date: Tue, 5 Aug 2025 09:35:03 +0200 Subject: [PATCH 2/2] Adjust comment as suggested by David --- .../jtreg/runtime/jni/checked/TestCharArrayReleasing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java b/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java index 39866ea055980..c26fb2bea4c57 100644 --- a/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java +++ b/test/hotspot/jtreg/runtime/jni/checked/TestCharArrayReleasing.java @@ -25,7 +25,7 @@ * @test * @bug 8357601 * @requires vm.flagless - * @comment array was allocated with raw malloc, this causes expected heap buffer issues and triggers asan + * @comment The check of the array allocated with raw malloc triggers ASAN as we peek into the malloc header space. * @requires !vm.asan * @library /test/lib * @run main/othervm/native TestCharArrayReleasing 0 0