Commit Graph

188 Commits

Author SHA1 Message Date
Jean Christophe Beyler
b036071125 8229036: Remove the testing against NSK_TRUE from tests
Remove the testing against NSK_TRUE from tests

Reviewed-by: sspitsyn, cjplummer
2019-08-08 04:29:56 -07:00
Jean Christophe Beyler
76b7c9a0ce 8228998: Remove the testing against NSK_FALSE from tests
Remove the testing against NSK_FALSE from tests

Reviewed-by: cjplummer, sspitsyn
2019-08-02 11:24:59 -07:00
Matthias Baesken
4dececb589 8226943: compile error in libfollowref003.cpp with XCode 10.2 on macosx
Reviewed-by: sspitsyn
2019-06-28 13:16:11 +02:00
Serguei Spitsyn
ff1f2fad6e 8226917: jvmti/scenarios/contention/TC04/tc04t001/TestDescription.java fails on jvmti->InterruptThread (JVMTI_ERROR_THREAD_NOT_ALIVE)
Fix one more sync issue in the test

Reviewed-by: dcubed, gadams, amenkov
2019-06-28 16:06:44 -07:00
Serguei Spitsyn
8cf8442085 8226595: jvmti/scenarios/contention/TC04/tc04t001/TestDescription.java still fails due to wrong number of MonitorContendedEntered events
Fix one more sync issue in the test

Reviewed-by: dcubed, amenkov
2019-06-22 14:35:57 -07:00
Serguei Spitsyn
fc6de2505d 8224555: vmTestbase/nsk/jvmti/scenarios/contention/TC02/tc02t001/TestDescription.java failed
Improve synchronization in the test

Reviewed-by: dcubed, amenkov
2019-06-21 18:20:49 -07:00
Serguei Spitsyn
fc6b87472c 8223736: jvmti/scenarios/contention/TC04/tc04t001/TestDescription.java fails due to wrong number of MonitorContendedEntered events
Fix the synchronization issue in the test

Reviewed-by: cjplummer, dcubed, amenkov
2019-06-20 23:12:12 -07:00
Serguei Spitsyn
110ead8bea 8223718: Checks in check_slot_type_no_lvt() should be always executed
Call check_slot_type_no_lvt() even if the LVT is present

Reviewed-by: kvn, gadams, amenkov
2019-05-30 15:55:16 -07:00
Jean Christophe Beyler
68ae1e7965 8223044: Add back exception checking in tests
Add exception checking to previously modified tests

Reviewed-by: sspitsyn, cjplummer
2019-05-07 07:43:41 -07:00
Jean Christophe Beyler
fd3378a73e 8213501: Deploy ExceptionJniWrapper for a few tests
Add more tests to be using the wrapper

Reviewed-by: phh, amenkov, sspitsyn, dholmes, cjplummer
2019-04-23 08:11:38 -07:00
Daniil Titov
32848d8166 8222224: vmTestbase/nsk/jvmti/SingleStep/singlestep001/TestDescription.java fails
Reviewed-by: sspitsyn, jcbeyler, amenkov
2019-04-10 21:21:31 +00:00
Daniil Titov
6d77c76cf2 8218727: vmTestbase/nsk/jvmti/scenarios/events/EM04/em04t001/TestDescription.java crash in native library
Reviewed-by: sspitsyn, gadams
2019-03-28 04:26:36 +00:00
Gary Adams
c986cef7ba 8218128: vmTestbase/nsk/jvmti/ResourceExhausted/resexhausted003 and 004 use wrong path to test classes
Reviewed-by: cjplummer, dholmes, lmesnik
2019-03-26 07:24:26 -04:00
Daniil Titov
57bf6a1800 8217827: [Graal] Some vmTestbase/nsk/jvmti/ResourceExhausted tests failing
Reviewed-by: cjplummer, jcbeyler, dholmes
2019-03-26 04:19:39 +00:00
Daniil Titov
ed5a2f1e06 8218401: WRONG_PHASE: vmTestbase/nsk/jvmti test crash
Reviewed-by: sspitsyn, jcbeyler
2019-03-21 19:56:31 +00:00
Chris Plummer
6fd9b75e55 8220352: Crash with assert(external_guard || result != __null) failed: Invalid JNI handle
Don't delete globalrefs that might still be referenced

Reviewed-by: gadams, jcbeyler, sspitsyn
2019-03-13 19:42:23 -07:00
Daniil Titov
ac7f4635e1 8218167: nsk/jvmti/scenarios/sampling/SP02/sp02t003 fails
Reviewed-by: dlong, cjplummer
2019-03-05 13:41:35 -08:00
Jean Christophe Beyler
6029814c30 8212824: Remove unnecessary spaces before/after comparison in vmTestbase
Remove extra spaces around comparisons

Reviewed-by: phh, amenkov
2019-01-14 15:40:22 -08:00
David Holmes
cb960e9a30 8217618: JVM TI SuspendThread doesn't suspend the current thread before returning
Reviewed-by: dcubed, sspitsyn, dlong
2019-01-27 20:48:27 -05:00
Alex Menkov
78651809c5 8216386: vmTestbase/nsk/jvmti/PopFrame/popframe005/TestDescription.java fails
Reviewed-by: jcbeyler, dtitov, sspitsyn
2019-01-24 11:10:13 -08:00
Goetz Lindenmaier
084f0b75bd 8216265: [testbug] Introduce Platform.sharedLibraryPathVariableName() and adapt all tests
Also cleanup some switches over OSes and use File.pathSeparator.

Reviewed-by: dholmes, mdoerr
2019-01-14 00:00:00 +01:00
Gary Adams
d1922533ae 8213001: vmTestbase/nsk/jvmti/ThreadStart/threadstart002/TestDescription.java debug agent times out
Reviewed-by: dcubed, jcbeyler
2019-01-09 12:09:20 -05:00
Jesper Wilhelmsson
67abf1eef9 Merge 2019-01-08 07:29:13 +01:00
Gary Adams
32a5512763 8211343: nsk_jvmti_parseoptions should handle multiple suboptions
Reviewed-by: sspitsyn, cjplummer
2019-01-02 07:19:33 -05:00
Alex Menkov
ae369f40a4 8215716: PopFrame() was unexpectedly done
Reviewed-by: dholmes, sspitsyn
2018-12-20 17:51:16 -08:00
Goetz Lindenmaier
91e5051871 8215975: [testbug] Adapt nsk tests to the PPC, S390 and AIX platforms
Use LIBPATH on AIX, no shared memory connector on any Unix.

Reviewed-by: gadams, simonis, sspitsyn
2018-12-31 14:38:16 +01:00
Alex Menkov
a4d4c07f7b 8215425: vmTestbase/nsk/jvmti/PopFrame should provide more detailed output
Reviewed-by: sspitsyn, jcbeyler
2018-12-19 14:08:08 -08:00
Gary Adams
cc65367331 8051349: nsk/jvmti/scenarios/sampling/SP06/sp06t003 fails in nightly
Reviewed-by: dholmes, sspitsyn, cjplummer, jcbeyler
2018-12-18 07:33:07 -05:00
Jean Christophe Beyler
019bd7cf2b 8215160: Normalize spaces for remaining vmTestbase tests
Add spaces where needed

Reviewed-by: sspitsyn, amenkov
2018-12-11 12:45:38 -08:00
Jean Christophe Beyler
a16d122b07 8215161: Normalize spaces for vmTestbase/[a-j]
Added spaces around comparators

Reviewed-by: amenkov, sspitsyn, martin
2018-12-11 10:29:30 -08:00
Roman Kennke
8b62a2ee9d 8214259: Implementation: JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)
Co-authored-by: Christine Flood <chf@redhat.com>
Co-authored-by: Aleksey Shipilev <shade@redhat.com>
Co-authored-by: Roland Westrelin <rwestrel@redhat.com>
Co-authored-by: Zhenygu Gu <zgu@redhat.com>
Co-authored-by: Andrew Haley <aph@redhat.com>
Co-authored-by: Andrew Dinn <adinn@redhat.com>
Co-authored-by: Mario Torre <mtorre@redhat.com>
Reviewed-by: kvn, roland, shade, coleenp, lmesnik, pliden, jgeorge, ihse, erikj
2018-12-10 15:47:44 +01:00
Daniil Titov
cbaebf738e 8214572: [Graal] nsk/jvmti/unit/ForceEarlyReturn/earlyretbase should not suspend the thread when the top frame executes JVMCI code
Reviewed-by: sspitsyn, dholmes, jcbeyler
2018-12-04 21:13:45 -08:00
Jean Christophe Beyler
54dda86a98 8214502: Add space after/before {} in remaining vmTestbase tests
Added spaces around the {}

Reviewed-by: dholmes, sspitsyn
2018-12-03 19:47:37 -08:00
Jean Christophe Beyler
1285c3cd30 8214417: Add space after/before {} in vmTestbase/nsk/jvmti/[A-I] tests
Fix the spaces around {}

Reviewed-by: amenkov, sspitsyn, dholmes
2018-11-29 18:57:18 -08:00
Igor Veresov
da77659d7e 8193577: nsk/jvmti/IterateThroughHeap/filter-tagged fails with Graal in Xcomp mode
Make field values opaque to compiler

Reviewed-by: dlong, sspitsyn
2018-11-29 11:47:08 -08:00
Simon Tooke
710ecce7f7 8214108: [TESTBUG] Incorrect Function parameter lists in vmTestbase/nsk/jvmti/scenarios/extension/EX03/ex03t001
Reviewed-by: gadams, sspitsyn
2018-11-22 11:15:53 +01:00
Jean Christophe Beyler
937fe3be82 8214149: Move out assignments when not using NSK*VERIFY macros
Move out the assignments from ifs

Reviewed-by: sspitsyn, cjplummer
2018-11-21 10:46:45 -08:00
Jean Christophe Beyler
1d340e454c 8212939: Add space after if/while/for/switch and parenthesis
Add spaces where needed

Reviewed-by: cjplummer, sspitsyn
2018-11-12 13:13:00 -08:00
Serguei Spitsyn
bf16c3a479 8080406: VM_GetOrSetLocal doesn't check local slot type against requested type
Provide possible type checks when LVT is absent

Reviewed-by: jcbeyler, cjplummer
2018-11-08 00:07:48 -08:00
Gary Adams
bb0212400f 8213245: Restoring nsk/jvmti/scenarios/hotswap tests from ProblemList.txt
Reviewed-by: jcbeyler, cjplummer, amenkov
2018-11-01 11:42:59 -04:00
Jean Christophe Beyler
589b596bec 8212884: Remove the assignments in ifs for vmTestbase/[a-s]
Extract assignments from if statements in vmTestbase

Reviewed-by: cjplummer, sspitsyn
2018-10-25 14:23:26 -07:00
Jean Christophe Beyler
be312edc2a 8212770: Remove spaces before/after () for vmTestbase/jvmti/[s-u]
Remove spaces before/after ()

Reviewed-by: amenkov, cjplummer
2018-10-25 08:18:42 -07:00
Jean Christophe Beyler
db6696837e 8212771: Remove remaining spaces before/after () for vmTestbase
Remove spaces around ()

Reviewed-by: phh, sspitsyn
2018-10-23 09:43:16 -07:00
Jean Christophe Beyler
e6d66056ab 8212535: Remove spaces before/after () for vmTestbase/[a-j]*
Remove white spaces from tests

Reviewed-by: amenkov, cjplummer, phh, sspitsyn
2018-10-22 19:31:41 -07:00
Jean Christophe Beyler
a623db2148 8212148: Remove remaining NSK_CPP_STUBs
Remove remaining macros

Reviewed-by: amenkov, phh, iignatyev
2018-10-22 12:43:15 -07:00
Jean Christophe Beyler
d63acb557c 8211899: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/scenarios/[E-M]
Remove the NSK_CPP_STUB macros from tests

Reviewed-by: amenkov, phh, sspitsyn
2018-10-17 21:28:11 -07:00
Jean Christophe Beyler
e431f6a418 8212082: Remove the NSK_CPP_STUB macros for remaining vmTestbase/jvmti/[sS]*
Remove NSK_CPP_STUB macros from the tests

Reviewed-by: amenkov, phh
2018-10-14 19:07:34 -07:00
Jean Christophe Beyler
efa175f20e 8211801: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/scenarios/[A-E]
Remove the NSK_CPP_STUB macros

Reviewed-by: amenkov, sspitsyn
2018-10-10 11:20:21 -07:00
Jean Christophe Beyler
11da699d9e 8211905: Remove multiple casts for EM06 file
Remove multiple casts for EM06 file

Reviewed-by: sspitsyn, cjplummer
2018-10-09 13:22:19 -07:00
Gary Adams
7b7315dbed 8201603: MonitorContendedEnter failure in nsk/jvmti/scenarios/contention/TC02/tc02t001
Reviewed-by: cjplummer
2018-10-08 14:57:07 -04:00
Jean Christophe Beyler
61f453edf7 8211782: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/[I-S]*
Remove the NSK_CPP_STUB macros

Reviewed-by: amenkov, sspitsyn
2018-10-08 19:44:44 -07:00
Jean Christophe Beyler
85c6642e38 8211131: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/[G-I]*
Remove the NSK_CPP_STUB macros

Reviewed-by: amenkov, sspitsyn
2018-10-08 13:56:28 -07:00
Jean Christophe Beyler
57622ed115 8211261: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/[A-G]*
Remove the NSK_CPP_STUB macros

Reviewed-by: amenkov, cjplummer
2018-10-08 13:54:43 -07:00
Gary Adams
40d81d4bcc 8036026: nsk/jvmti/scenarios/capability/CM02/cm02t001 fails intermittently
Reviewed-by: cjplummer, dcubed
2018-10-08 07:18:40 -04:00
Gary Adams
c0fd523c05 8210984: [TESTBUG] hs203t003 fails with "# ERROR: hs203t003.cpp, 218: NSK_CPP_STUB2 ( ResumeThread, jvmti, thread)"
Reviewed-by: cjplummer, jcbeyler
2018-09-27 07:33:13 -04:00
Jean Christophe Beyler
64099fc1cc 8210689: Remove the multi-line old C style for string literals
Remove the multi-line old C style and prefer C++ multi-line

Reviewed-by: amenkov, cjplummer
2018-09-25 09:34:51 -07:00
Coleen Phillimore
a3931a76f6 8210861: Move assert to help diagnose rare RedefineStress crash
Assert that Method being marked on stack hasn't been missed by previous metadata walk

Reviewed-by: lfoltan
2018-09-18 16:11:36 -04:00
Jean Christophe Beyler
bdf78f557a 8210700: Clean up JNI_ENV_ARG and factorize the macros for vmTestbase/jvmti/unit tests
Remove JNI_ENV macros from the remaining vmTestbase tests

Reviewed-by: amenkov, sspitsyn, dholmes, cjplummer
2018-09-17 19:48:35 -07:00
Jean Christophe Beyler
510336c210 8210481: Remove #ifdef cplusplus from vmTestbase
Remove all cplusplus ifdefs from vmTestbase

Reviewed-by: dholmes, iignatyev, cjplummer, sspitsyn
2018-09-17 19:36:09 -07:00
Jean Christophe Beyler
fddc4b8ccb 8210726: Fix up a few minor nits forgotten by JDK-8210665
Minor changes to 4 tests to make one-liners

Reviewed-by: cjplummer, iignatyev, sspitsyn
2018-09-17 09:07:40 -07:00
Jean Christophe Beyler
85b57de9ce 8210665: Clean up JNI_ENV_ARG and factorize the macros for vmTestbase/jvmti[R-U] tests
Remove JNI_ENV and JVMTI_ENV macros from jvmti/[R-U] tests

Reviewed-by: cjplummer, sspitsyn
2018-09-13 13:03:50 -07:00
Jean Christophe Beyler
6a2e4311f5 8210593: Clean up JNI_ENV_ARG and factorize the macros for vmTestbase/jvmti[N-R] tests
Remove JNI_ENV/JVMTI_ENV macros from N to R jvmti tests

Reviewed-by: amenkov, dholmes
2018-09-12 10:27:03 -07:00
Jean Christophe Beyler
fe326ad022 8210385: Clean up JNI_ENV_ARG and factorize the macros for vmTestbase/jvmti[A-N] tests
Remove JNI_ENV and JVMTI_ENV macros for part of the jvmti tests

Reviewed-by: amenkov, dholmes
2018-09-11 10:12:50 -07:00
Jean Christophe Beyler
d90f0a51c2 8210429: Clean up JNI_ENV_ARG for vmTestbase/jvmti/Get[G-Z] tests
Remove the JNI_ENV_ARG for the rest of the Get[G-Z]

Reviewed-by: dholmes, sspitsyn, cjplummer
2018-09-07 09:50:02 -07:00
Jean Christophe Beyler
d256eb923b 8210198: Clean up JNI_ENV_ARG for vmTestbase/jvmti/Get[A-F] tests
Remove JNI_ENV macros from the Get[A-F] tests

Reviewed-by: sspitsyn, amenkov, cjplummer
2018-09-05 19:40:52 -07:00
Daniil Titov
4d57252ee0 8209585: [Graal] vmTestbase/nsk/jvmti/scenarios/sampling tests fail with "Too small stack of resumed thread"
Reviewed-by: sspitsyn, amenkov, cjplummer, jcbeyler
2018-08-31 11:56:43 -07:00
Matthias Baesken
45fb620218 8210205: build fails on AIX in hotspot cpp tests (for example getstacktr001.cpp)
Reviewed-by: mdoerr, stuefe
2018-08-30 13:12:38 +02:00
Ioi Lam
3c135ae705 8210194: [TESTBUG] jvmti_FollowRefObjects.cpp missing initializer for member _jvmtiHeapCallbacks::heap_reference_callback
Reviewed-by: sspitsyn, iignatyev
2018-08-30 08:01:13 -07:00
Igor Ignatyev
8c47dc4a94 8209611: use C++ compiler for hotspot tests
Reviewed-by: vlivanov, ihse, erikj, jcbeyler
2018-08-28 14:37:34 -07:00
Gary Adams
fc61b1abfb 8019927: [TESTBUG] nsk/jvmti/GetThreadInfo/thrinfo001 intermittently fails with 'invalid thread group' when running with JFR
Reviewed-by: amenkov, cjplummer, sspitsyn
2018-08-28 07:30:36 -04:00
Gary Adams
14bb47410b 8034084: nsk.nsk/jvmti/ThreadStart/threadstart003 Wrong number of thread end events
Reviewed-by: amenkov, dholmes, sspitsyn
2018-08-23 07:54:19 -04:00
Daniil Titov
f1553a5f0f 8202342: [Graal] fromTonga/nsk/jvmti/unit/FollowReferences/followref003/TestDescription.java fails with "Location mismatch" errors
Reviewed-by: sspitsyn, amenkov
2018-08-22 08:31:15 -07:00
Coleen Phillimore
16f9e07ba1 8208074: [TESTBUG] vmTestbase/nsk/jvmti/RedefineClasses/StressRedefineWithoutBytecodeCorruption/TestDescription.java failed with NullPointerException
Fixed refactoring caused by JDK-8203820

Reviewed-by: dholmes, sspitsyn, cjplummer
2018-07-31 15:57:52 -04:00
Daniil Titov
31cf8b1c65 8207364: nsk/jvmti/ResourceExhausted/resexhausted003 fails to start
Reviewed-by: sspitsyn, cjplummer
2018-07-26 16:22:58 -07:00
Phil Race
1387c87093 Merge 2018-07-26 10:00:40 -07:00
Chris Plummer
3ec12f2dc1 8151259: [TESTBUG] nsk/jvmti/RedefineClasses/redefclass030 fails with "unexpected values of outer fields of the class" when running with -Xcomp
Do a better job of handling compilations before execution

Reviewed-by: sspitsyn, amenkov
2018-07-25 13:15:36 -07:00
Coleen Phillimore
a95225aabc 8203820: [TESTBUG] vmTestbase/metaspace/staticReferences/StaticReferences.java timed out
Moved InMemoryJavaCompiler out of loops or reduced loops with InMemoryJavaCompiler

Reviewed-by: vromero, jiangli
2018-07-20 18:03:23 -04:00
Alex Menkov
7d8922221d 8201513: nsk/jvmti/IterateThroughHeap/filter-* are broken
Reviewed-by: sspitsyn, cjplummer
2018-07-13 10:10:51 -07:00
David Holmes
5fcb3ecb4e 8205878: pthread_getcpuclockid is expected to return 0 code
Reviewed-by: cjplummer, amenkov, coleenp
2018-07-09 20:17:32 -04:00
Igor Ignatyev
cb2d33f02c 8206287: fix legal notice in hotspot tests
Reviewed-by: kvn, hseigel
2018-07-09 11:15:55 -07:00
Ekaterina Pavlova
b4c6d6ae31 8195630: [Graal] vmTestbase/nsk/jvmti/AttachOnDemand/attach024/TestDescription.java fails with Graal
Reviewed-by: kvn
2018-06-28 19:33:00 -07:00
Alex Menkov
1e326d1b84 8205681: [TEST_BUG] vmTestbase/nsk/jvmti/Allocate/alloc001/TestDescription.java fails with exit code 98
Reviewed-by: sspitsyn, cjplummer, dholmes
2018-06-28 03:45:49 -07:00
Gary Adams
dfe4aabde4 6545967: sp05t003 failed ResumeThread() due to THREAD_NOT_SUSPENDED
Reviewed-by: cjplummer, sspitsyn
2018-06-20 13:57:38 -04:00
Boris Ulasevich
44d8adb43f 8204961: JVMTI jtreg tests build warnings on 32-bit platforms
Reviewed-by: sspitsyn, dholmes
2018-06-18 20:50:23 -04:00
Vladimir Kozlov
9b7a61eff1 8184349: There should be some verification that EnableJVMCI is disabled if a GC not supporting JVMCI is selected
Exit VM with Error when JVMCI does not support seected GC.

Reviewed-by: iveresov, thartmann
2018-06-15 09:16:48 -07:00
Per Lidén
e7af7a4aef 8204210: Implementation: JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Co-authored-by: Erik Osterlund <erik.osterlund@oracle.com>
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Co-authored-by: Kim Barrett <kim.barrett@oracle.com>
Co-authored-by: Nils Eliasson <nils.eliasson@oracle.com>
Co-authored-by: Rickard Backman <rickard.backman@oracle.com>
Co-authored-by: Roland Westrelin <rwestrel@redhat.com>
Co-authored-by: Coleen Phillimore <coleen.phillimore@oracle.com>
Co-authored-by: Robbin Ehn <robbin.ehn@oracle.com>
Co-authored-by: Gerard Ziemski <gerard.ziemski@oracle.com>
Co-authored-by: Hugh Wilkinson <hugh.wilkinson@intel.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Co-authored-by: Bill Wheeler <bill.npo.wheeler@intel.com>
Co-authored-by: Vinay K. Awasthi <vinay.k.awasthi@intel.com>
Co-authored-by: Yasumasa Suenaga <yasuenag@gmail.com>
Reviewed-by: pliden, stefank, eosterlund, ehelin, sjohanss, rbackman, coleenp, ihse, jgeorge, lmesnik, rkennke
2018-06-12 17:40:28 +02:00
Daniil Titov
de66432d4a 8203802: Jvmti test fails to build with VS2017
Reviewed-by: sspitsyn, erikj
2018-05-30 08:59:56 -07:00
Igor Ignatyev
59ac4c2629 8199383: [TESTBUG] Open source VM testbase JVMTI tests
Reviewed-by: sspitsyn, erikj
2018-05-24 17:12:15 -07:00