Commit Graph

105 Commits

Author SHA1 Message Date
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
5639c70032 8213721: [Graal] Tests vmTestbase/nsk/stress/except/except* may be encountering SEGV during out-of-memory conditions
Add the exception handler only for the current thread

Reviewed-by: dholmes, sspitsyn, thartmann
2018-11-21 09:38:27 -08:00
Daniil Titov
52bee8fe04 8203174: [Graal] JDI tests fail with Unexpected exception: com.sun.jdi.ObjectCollectedException
Reviewed-by: sspitsyn, cjplummer
2018-11-15 09:56:49 -08:00
Jean Christophe Beyler
d7d4bc9fdd 8213622: Windows VS2013 build failure - "'snprintf': identifier not found"
Replace snprintf with strlen and memcpy

Reviewed-by: dholmes, mvala, kbarrett
2018-11-14 12:25:15 -08:00
David Holmes
90cf7a7d12 8213718: [TEST] Wrong classname in vmTestbase/nsk/stress/except/except002 and except003
Reviewed-by: zgu, jcbeyler
2018-11-12 16:36:05 -05: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
Zhengyu Gu
83155e1ea6 8213707: [TEST] vmTestbase/nsk/stress/except/except011.java failed due to wrong class name
Fixed wrong class name in test

Reviewed-by: dholmes, jcbeyler
2018-11-10 09:06:33 -05: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
e3a2417b63 8213246: Fix typo in vmTestbase failuire to failure
Fix failuire typo in two spots

Reviewed-by: mikael, dcubed, iignatyev
2018-11-03 12:37:55 -07:00
David Holmes
3837f1abc1 8210242: vmTestbase/nsk/stress/jni/jnistress001.java crashes with EXCEPTION_ACCESS_VIOLATION on windows-x86
Non-NUL-terminated string was passed to %s - use %.*s to specify the actual length.

Reviewed-by: lfoltan, hseigel
2018-10-25 19:12:39 -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
7afa70096a 8212083: Handle remaining gc/lock native code and fix two strings
Migrate code to using wrapping JNI for exceptions

Reviewed-by: phh, tschatzl
2018-10-15 14:55:17 -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
b68500521e 8211432: [REDO] Handle JNIGlobalRefLocker.cpp
Adding a JNI verification wrapper for tests

Reviewed-by: amenkov, sspitsyn, phh
2018-10-11 09:30:10 -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
Mikael Vidstedt
0746fffe5c 8211291: Backout JDK-8210842 Handle JNIGlobalRefLocker.cpp
Reviewed-by: kbarrett, iignatyev, jcbeyler
2018-09-28 14:53:41 -07:00
Jean Christophe Beyler
cc4436e2b9 8210842: Handle JNIGlobalRefLocker.cpp
Add checking for JNI calls via a new ExceptionCheckingJniEnv

Reviewed-by: sspitsyn, amenkov, dholmes, mikael
2018-09-28 13:01:28 -07:00
Gary Adams
c45eacbd27 8208473: [TESTBUG] nsk/jdb/exclude/exclude001/exclude001.java is timing out on solaris-sparc again
Reviewed-by: cjplummer, amenkov
2018-09-28 14:31:36 -04:00
Jean Christophe Beyler
b20e2cd963 8211036: Remove the NSK_STUB macros from vmTestbase for non jvmti
Remove the NSK_STUB macros from code outside of the jvmti subfolder

Reviewed-by: iignatyev, amenkov, dholmes
2018-09-27 15:56:40 -07: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
Gary Adams
db61465761 8208471: nsk/jdb/unwatch/unwatch002/unwatch002.java fails with "Prompt is not received during 300200 milliseconds"
Reviewed-by: cjplummer, amenkov
2018-09-21 08:13:55 -04:00
Chris Plummer
7dd0aaa430 8210987: Extra newlines on Windows when running nsk jdb tests
Fix skipping over newlines

Reviewed-by: dholmes, jcbeyler, amenkov
2018-09-22 14:12:48 -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
Gary Adams
18199b887f 8208468: [TESTBUG] nsk/jdb/locals/locals002: fails with "Prompt is not received during ... milliseconds"
Reviewed-by: cjplummer, amenkov
2018-09-13 07:46:41 -04: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
David Holmes
1f30060cbb 8210512: [Testbug] vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects002/referringObjects002.java fails with unexpected size of ClassLoaderReference.referringObjects
Account for the self-reference that every class has in the constant pool

Reviewed-by: sspitsyn, jcbeyler
2018-09-10 18:57:44 -04:00
Coleen Phillimore
7445ebf02b 8208697: vmTestbase/metaspace/stressHierarchy/stressHierarchy012/TestDescription.java fails with OutOfMemoryError: Metaspace
Remove timeoutHandler class and let Stresser handle timeout, remove 30 threads filling metaspace, and remove related unused files.

Reviewed-by: lfoltan, mseledtsov
2018-09-10 16:33:55 -04: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
Jean Christophe Beyler
d0560a2860 8210182: Remove macros for C compilation from vmTestBase but non jvmti
Remove the macros and update the code

Reviewed-by: sspitsyn, cjplummer, amenkov
2018-08-31 22:55:34 -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