8358679: [asan] vmTestbase/nsk/jvmti tests show memory issues

Reviewed-by: cjplummer, sspitsyn
This commit is contained in:
Alex Menkov 2025-07-10 19:57:27 +00:00
parent 3d74cbe0ac
commit 2300a212dd
6 changed files with 21 additions and 10 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -37,6 +37,9 @@
* 4431533: TEST_BUG: destroyed raw monitor can be occasionally valid
* Ported from JVMDI.
*
* @comment The test intentionally passes a bad argument to the function to verify error checking,
which causes a false positive from the ASAN lib
* @requires !vm.asan
* @library /vmTestbase
* /test/lib
* @run main/othervm/native -agentlib:rawmonenter003 nsk.jvmti.RawMonitorEnter.rawmonenter003

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -37,6 +37,9 @@
* 4431533: TEST_BUG: destroyed raw monitor can be occasionally valid
* Ported from JVMDI.
*
* @comment The test intentionally passes a bad argument to the function to verify error checking,
which causes a false positive from the ASAN lib
* @requires !vm.asan
* @library /vmTestbase
* /test/lib
* @run main/othervm/native -agentlib:rawmonexit003 nsk.jvmti.RawMonitorExit.rawmonexit003

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -37,6 +37,9 @@
* 4431533: TEST_BUG: destroyed raw monitor can be occasionally valid
* Ported from JVMDI.
*
* @comment The test intentionally passes a bad argument to the function to verify error checking,
which causes a false positive from the ASAN lib
* @requires !vm.asan
* @library /vmTestbase
* /test/lib
* @run main/othervm/native -agentlib:rawmnntfy003 nsk.jvmti.RawMonitorNotify.rawmnntfy003

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -37,6 +37,9 @@
* 4431533: TEST_BUG: destroyed raw monitor can be occasionally valid
* Ported from JVMDI.
*
* @comment The test intentionally passes a bad argument to the function to verify error checking,
which causes a false positive from the ASAN lib
* @requires !vm.asan
* @library /vmTestbase
* /test/lib
* @run main/othervm/native -agentlib:rawmnntfyall003 nsk.jvmti.RawMonitorNotifyAll.rawmnntfyall003

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -37,6 +37,9 @@
* 4431533: TEST_BUG: destroyed raw monitor can be occasionally valid
* Ported from JVMDI.
*
* @comment The test intentionally passes a bad argument to the function to verify error checking,
which causes a false positive from the ASAN lib
* @requires !vm.asan
* @library /vmTestbase
* /test/lib
* @run main/othervm/native -agentlib:rawmnwait003 nsk.jvmti.RawMonitorWait.rawmnwait003

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -237,10 +237,6 @@ agentProc(jvmtiEnv* jvmti, JNIEnv* agentJNI, void* arg) {
}
jvmti->RawMonitorExit(syncLock);
if (!NSK_JVMTI_VERIFY(jvmti->DestroyRawMonitor(syncLock)))
nsk_jvmti_setFailStatus();
}
/* ============================================================================= */