mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-07 22:50:49 +00:00
8358679: [asan] vmTestbase/nsk/jvmti tests show memory issues
Reviewed-by: cjplummer, sspitsyn
This commit is contained in:
parent
3d74cbe0ac
commit
2300a212dd
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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();
|
||||
|
||||
}
|
||||
|
||||
/* ============================================================================= */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user