Commit Graph

522 Commits

Author SHA1 Message Date
Christian Tornqvist
9f677f4e21 8075438: [TESTBUG] Hotspot JTREG tests should use unique CDS archive names
Reviewed-by: hseigel, gtriantafill
2015-03-30 08:28:07 -07:00
Alexander Kulyakthin
01b9971365 8075586: Add @modules as needed to the open hotspot tests
Reviewed-by: sla, ctornqvi, lfoltan, mchung, alanb
2015-03-26 16:36:56 +01:00
Harold Seigel
257436004b 7127066: Class verifier accepts an invalid class file
For *store bytecodes, compare incoming, not outgoing, type state with exception handlers' stack maps.

Reviewed-by: acorn, dholmes
2015-03-25 08:16:48 -04:00
Severin Gehwolf
e1d7a11c64 8075533: Zero JVM segfaults for -version after JDK-8074552
Remove SafeFetchXX Zero implementations and guard test with CanUseSafeFetchXX

Reviewed-by: simonis, coleenp
2015-03-23 13:53:44 +01:00
Harold Seigel
bbd0191aea 8075118: JVM stuck in infinite loop during verification
Keep a list of handlers to prevent the same handler from being scanned repeatedly.

Reviewed-by: dlong, dholmes
2015-03-19 08:55:50 -04:00
Chris Plummer
984cf4c9b5 8069111: Investigate NMT detail tracking support for 32bit ARM
Fix native stack walking issues arm arm32. Disable on thumb2. Removed support for NMT without NMT detail.

Reviewed-by: dholmes, bdelsart
2015-03-10 19:56:19 -07:00
Thomas Stufe
33690bd090 8074552: SafeFetch32 and SafeFetchN do not work in error handling
Reviewed-by: dholmes, goetz
2015-03-12 19:34:50 -04:00
Dmitry Dmitriev
26261a9600 8069291: [TESTBUG] runtime/threads/Fibonacci: OutOfMemoryError: unable to create native thread
Reviewed-by: dholmes, ctornqvi
2015-02-26 06:11:56 -08:00
Stefan Sarne
fab80a0ca3 8073718: [TESTBUG] Cleanup test output and skip creating mini dumps
Reviewed-by: sla, ctornqvi
2015-02-26 06:11:40 -08:00
Paul Sandoz
a1d993e9ce 8068975: Remove deprecated methods on sun.misc.Unsafe and clean up native implementation
Reviewed-by: dholmes, kvn, vlivanov
2015-02-10 14:10:43 +01:00
Jean-Francois Denise
aaac2cbb54 8080511: Refresh of jimage support
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: alanb, mchung, psandoz, acorn, lfoltan, ctornqvi
2015-06-25 18:25:19 +02:00
Dmitry Dmitriev
fff2d77827 8129394: [TESTBUG] runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java failed with double option
Reviewed-by: dholmes
2015-06-24 18:21:14 -04:00
Thomas Stuefe
de0f1ccb86 8072575: Add missing test for 8065895
Reviewed-by: dholmes, gziemski
2015-02-04 21:33:22 -05:00
Christian Tornqvist
62166e9f59 8071584: [TESTBUG] runtime/Unsafe/AllocateMemory.java crashed on OOM during compilation
Reviewed-by: dholmes, gtriantafill, jprovino
2015-01-29 14:50:43 -08:00
Coleen Phillimore
d57245dcbb 8049632: JDK 1.8.0 b132 :Linux x64 : Crash in ClassFileParser::copy_localvariable_table(..)
Use resource allocated hashtable for local variable table checking

Reviewed-by: kamg, sspitsyn
2015-01-29 14:37:14 -05:00
Christian Tornqvist
2c2593b757 8069207: [TESTBUG] Exception thrown for java.lang.NoSuchMethodError: sun.misc.Unsafe.monitorExit
Reviewed-by: gtriantafill, dholmes
2015-01-23 11:44:21 -08:00
Yumin Qi
08c8e0bd31 Merge 2015-01-18 11:49:22 -08:00
Christian Tornqvist
4f3c9fccb7 8062961: [TESTBUG] Spurious timeout for runtime/ErrorHandling/ProblematicFrameTest
Reviewed-by: coleenp, gtriantafill
2015-01-15 14:10:49 -08:00
Dean Long
e2bf1cd30d Merge 2015-01-15 16:51:09 -05:00
Goetz Lindenmaier
8e2df5f543 8067941: [TESTBUG] Fix tests for OS with 64K page size
Reviewed-by: kvn, tschatzl, ctornqvi
2015-01-12 14:43:34 -08:00
Nils Eliasson
4742c185a7 8027829: CompileCommand does not accept all JLS-conformant class/method names
Fix parsing and updated comments

Reviewed-by: kvn, vlivanov
2015-01-13 12:30:26 +01:00
Calvin Cheung
9000f8c3c7 8067187: -XX:MaxMetaspaceSize=20m -Xshare:dump caused JVM to crash
Added check for the MaxMetaspaceSize. If it is less than the estimated required size, print an error and exit.

Reviewed-by: jiangli, mseledtsov, stefank
2015-01-12 11:37:58 -08:00
Yumin Qi
d4fd7377f4 Merge 2015-01-10 12:35:44 -08:00
Christian Tornqvist
90c58f1cc9 8068733: [TESTBUG] runtime/Unsafe/Reallocate.java sometimes fails when running with -Xcomp
Reviewed-by: coleenp, gtriantafill
2015-01-09 08:34:32 -08:00
Christian Tornqvist
c5853aabdd 8060219: [TESTBUG] runtime/7194254/Test7194254.java fails to find jstack with modular image build
Reviewed-by: gtriantafill, lfoltan, hseigel
2015-01-08 11:42:05 -08:00
Christian Tornqvist
6173a83d5d 8058897: Unsafe.reallocateMemory() ignores -XX:MallocMaxTestWords setting
Reviewed-by: dcubed, dholmes
2015-01-08 11:40:36 -08:00
Jesper Wilhelmsson
7c43a226b4 Merge 2015-01-08 15:44:46 +01:00
Dean Long
7002708d14 Merge 2015-01-09 13:28:02 -05:00
Goetz Lindenmaier
1b1ac860df 8068013: [TESTBUG] Aix support in hotspot jtreg tests
Reviewed-by: ctornqvi, fzhinkin, farvidsson
2015-01-09 05:45:13 -08:00
George Triantafillou
f7241915b4 8068540: [TESTBUG] Exclude failing nightly tests
Reviewed-by: ctornqvi, coleenp
2015-01-06 16:44:53 -08:00
Coleen Phillimore
2b871d6987 6583051: crash when adding non-static methods to java.lang.Object class
Stop the JVM if java.lang.Object is incorrectly defined rather than crashing.

Reviewed-by: ctornqvi, dholmes
2015-01-05 22:50:59 -05:00
Goetz Lindenmaier
1c18aef92c 8064457: Introduce compressed oops mode disjoint base and improve compressed heap handling
Introduce compressed oops mode disjoint base and improve compressed heap handling.

Reviewed-by: kvn, coleenp
2015-01-05 12:07:37 -05:00
Jesper Wilhelmsson
8575f889ee Merge 2015-01-05 15:00:30 +01:00
Yumin Qi
13548bcc63 Merge 2014-12-23 19:04:23 -08:00
Vladimir Kozlov
832167be7f 8067985: merging hs-comp to hs blocked by some tests not updated in 8054892
Reviewed-by: iveresov
2014-12-22 14:35:40 -08:00
Vladimir Kozlov
8bd2d4db6f Merge 2014-12-22 10:41:57 -08:00
Jesper Wilhelmsson
79439ff560 8067947: Regression test for JDK-6522873
Added a regression test that will fail if we allow extra characters after flag names

Reviewed-by: ctornqvi, tschatzl
2014-12-22 17:33:29 +01:00
Yumin Qi
ef9d3aa2a7 Merge 2014-12-19 22:52:02 -08:00
Jesper Wilhelmsson
1584f4cfc2 Merge 2014-12-18 16:15:49 +01:00
Jesper Wilhelmsson
dfc952b138 Merge 2014-12-18 16:15:49 +01:00
Jiangli Zhou
b0ad035af4 8059510: Compact symbol table layout inside shared archive
Use separate compact table for shared symbols.

Reviewed-by: iklam, gziemski, shade, sla, jrose
2014-12-17 23:34:52 -05:00
Max Ockner
51bda75a8f 8064319: Need to enable -XX:+TraceExceptions in release builds
"-XX:+TraceExceptions" is now supported in product builds.

Reviewed-by: sla, ccheung, coleenp
2014-12-16 19:00:24 -05:00
Jesper Wilhelmsson
3e9edcd457 Merge 2014-12-16 02:14:03 +01:00
Igor Ignatyev
e3b0d6d069 Merge 2014-12-12 21:32:43 +03:00
Albert Noll
7613da167b Merge 2014-12-12 08:40:19 -08:00
Tobias Hartmann
bf022cf7dc 8066433: Move Whitebox test library to top level repository
Moved Whitebox test library to top level repository.

Reviewed-by: iignatyev, sla, mr
2014-12-12 09:37:38 +01:00
Max Ockner
1d76295d70 8047290: Make Mutex::_no_safepoint_check_flag locks verify that this lock never checks for safepoint
Ensure consistent safepoint checking in Mutex/Monitor locking methods.

Reviewed-by: dholmes, dcubed, coleenp
2014-12-11 21:34:43 -05:00
Michail Chernov
56db4f28c9 8064909: FragmentMetaspace.java got OutOfMemoryError
Increased heap size to prevent "java.lang.OutOfMemoryError: Java heap space" exception

Reviewed-by: jmasa, dfazunen, jwilhelm
2014-12-10 13:58:30 +00:00
Calvin Cheung
701b666284 8065050: vm crashes during CDS dump when very small SharedMiscDataSize is specified
Define minimum required sizes for the ro, rw, and md regions and make sure the specified sizes are not less than the minimum sizes

Reviewed-by: jiangli, dholmes, mseledtsov
2014-12-05 12:24:10 -08:00
Ioi Lam
ea256a978f 8066670: PrintSharedArchiveAndExit does not exit the VM when the archive is invalid
In FileMapInfo::fail_continue do not set UseSharedSpaces = false

Reviewed-by: dholmes, ccheung
2014-12-04 15:20:09 -08:00
Yumin Qi
d620b54c63 8053995: Add method to WhiteBox to get vm pagesize
Unsafe is not recommended and may deprecated in future. Added a WhiteBox API to get VM page size.

Reviewed-by: dholmes, ccheung, mseledtsov
2014-11-26 10:32:21 -08:00
Max Ockner
54d2060d42 8060449: Obsolete command line flags accept arbitrary appendix
Proper error messages for newly obsolete command line flags.

Reviewed-by: lfoltan, dcubed, coleenp
2014-11-14 13:09:53 -05:00
Coleen Phillimore
629b0a66ee Merge 2014-11-11 18:00:06 +00:00
Coleen Phillimore
d6de951947 8062870: src/share/vm/services/mallocTracker.hpp:64 assert(_count > 0) failed: Negative counter
Signed bitfield size y can only have (1 << y)-1 values.

Reviewed-by: shade, dholmes, jrose, ctornqvi, gtriantafill
2014-11-11 09:59:50 -05:00
Aleksey Shipilev
21527b2ff2 8015272: Make @Contended within the same group to use the same oop map
Reviewed-by: coleenp, dholmes
2014-11-11 15:07:09 +03:00
George Triantafillou
b4138cce10 8061969: [TESTBUG] MallocSiteHashOverflow.java should be enabled for 32-bit platforms
Reviewed-by: ctornqvi, coleenp
2014-11-05 08:22:17 -08:00
Christian Tornqvist
76971f377b 8058251: assert(_count > 0) failed: Negative counter when running runtime/NMT/MallocTrackingVerify.java
Fixed an issue when overflowing the MallocSite hash table bucket

Reviewed-by: coleenp, gtriantafill
2014-11-05 13:20:09 -08:00
Christian Tornqvist
d934df8a84 8061733: [TESTBUG] Exclude tests that have issues with Jigsaw M2 changes
[TESTBUG] Exclude tests that have issues with Jigsaw M2 changes

Reviewed-by: lfoltan, gtriantafill
2014-11-05 13:18:51 -08:00
Rachel Protacio
abcfc9b394 8139564: Convert TraceDefaultMethods to Unified Logging
The former -XX:+TraceDefaultMethods flag is updated to the unified logging framework and is now replaced with -Xlog:defaultmethods.

Reviewed-by: acorn, coleenp, hseigel
2015-10-30 16:39:37 -04:00
Chris Plummer
d78d0c4fa4 8140189: [TESTBUG] Get rid of "@library /../../test/lib" in jtreg tests
Use new external.lib.roots property in TEST.ROOT so /../../test/lib is not needed.

Reviewed-by: mseledtsov, sla, iklam
2015-10-29 12:04:04 -07:00
Daniel D. Daugherty
ee1de3ce2f Merge 2014-10-27 15:09:23 -07:00
Alejandro Murillo
ea60f1eddd Merge 2014-10-27 07:49:54 -07:00
Boris Molodenkov
f55d90353f 8057135: [TESTBUG] Need a test to cover JDK-8050167
Reviewed-by: ctornqvi, coleenp
2014-10-24 12:32:53 +04:00
Chris Plummer
5306f2430a 6191224: (reflect) Misleading detail string in IllegalArgumentException thrown by Array.get<Type>
The test case shows that an exception is thrown with the message "Argument is not an array", when in fact the argument is an array, but an array of a primitive type is actually what was expected. Fixed by differentiating between failing because an array was expected and failing because an array of a primitive type was expected.

Reviewed-by: dholmes, ctornqvi, lfoltan
2014-10-23 14:43:08 -07:00
Calvin Cheung
1aa3da1067 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
Estimate the minimum required size for the misc code region and check if the specified misc code region size meets the minimum size requirement

Reviewed-by: jiangli, dholmes
2014-10-23 10:08:02 -07:00
Karen Kinnear
397e42b775 Merge 2014-10-22 22:37:06 +00:00
Karen Kinnear
0e1283a811 8043275: Fix interface initialization for default methods
Initialize interfaces that declare concrete instance methods.

Reviewed-by: kamg, coleenp, psandoz
2014-10-22 15:24:37 -07:00
Andreas Eriksson
ea48bceb5e 8057043: Type annotations not retained during class redefine / retransform
Reviewed-by: coleenp, sspitsyn, jfranck
2014-10-22 13:59:56 +02:00
Jiangli Zhou
cc264643ac 8060256: The loop in Arguments::parse() can be enhanced
Add continue statement for matching cases.

Reviewed-by: dholmes, bdelsart
2014-10-16 14:11:53 -04:00
George Triantafillou
b79e1193cd 8058606: [TESTBUG] Detailed Native Memory Tracking (NMT) data is not verified as output at VM exit
Reviewed-by: coleenp, hseigel
2014-10-15 05:55:44 -07:00
Coleen Phillimore
3a86f9cd27 8059100: SIGSEGV VirtualMemoryTracker::remove_released_region
Disallow increasing native memory tracking level

Reviewed-by: hseigel, ctornqvi, gtriantafill
2014-10-10 19:36:12 +00:00
Coleen Phillimore
ae9681a5cf 8058927: ATG throws ClassNotFoundException
ClassLoader for array klass set to null and not the class loader of the component type.

Reviewed-by: dcubed, ctornqvi
2014-09-26 12:50:30 -04:00
Coleen Phillimore
31b9cf6251 8058818: Allocation of more then 1G of memory using Unsafe.allocateMemory is still causing a fatal error on 32bit platforms
The assert was firing for NMT_Off and minimal too even though the size isn't used.

Reviewed-by: gtriantafill, dholmes
2014-09-25 07:52:32 -04:00
Ioi Lam
a2e41921c1 Merge 2014-09-19 13:47:19 -07:00
Jesper Wilhelmsson
e97944b0b1 Merge 2014-09-18 19:41:50 +02:00
Christian Tornqvist
4d8eb788f4 8058369: [TESTBUG] runtime/CompressedOops/UseCompressedOops.java Exception java.lang.RuntimeException: 'Zero based' missing from stdout/stderr
Solaris and OSX places the heap in unpredictable places, some of the test must be excluded on these platforms

Reviewed-by: hseigel, coleenp
2014-09-17 06:55:12 -07:00
George Triantafillou
d7f661e576 8058504: [TESTBUG] Temporarily disable failing test runtime/NMT/MallocTrackingVerify.java
Reviewed-by: ctornqvi, hseigel
2014-09-15 14:28:15 -07:00
Christian Tornqvist
9e6d432562 8022865: [TESTBUG] Compressed Oops testing needs to be revised
Rewrote compressed oops tests

Reviewed-by: kvn, coleenp, mseledtsov
2014-09-11 17:54:22 -07:00
Coleen Phillimore
310192415e 8055145: [TESTBUG] runtime/7158988/FieldMonitor.java fails with VMDisconnectedException
Exclude this test on JPRT and make it trivially pass if it gets a disconnected exception (which seems rare)

Reviewed-by: gtriantafill, sspitsyn, ctornqvi
2014-09-11 10:46:32 -04:00
George Triantafillou
287db624e4 8054836: [TESTBUG] Test is needed to verify correctness of malloc tracking
Reviewed-by: ctornqvi, lfoltan
2014-09-09 09:48:42 -07:00
Ivan Gerasimov
b5c0f09885 8057745: TEST_BUG: runtime/SharedArchiveFile/ArchiveDoesNotExist.java fails with openjdk build
Reviewed-by: dholmes, mseledtsov
2014-09-08 23:49:39 +04:00
Zhengyu Gu
b20fa155a6 Merge 2014-09-04 14:58:58 -04:00
Zhengyu Gu
95216ecffe 8055289: Internal Error: mallocTracker.cpp:146 fatal error: Should not use malloc for big memory block, use virtual memory instead
Return NULL if memory allocation size is bigger than MAX_MALLOC_SIZE when NMT is on

Reviewed-by: coleenp, gtriantafill
2014-09-04 14:50:31 -04:00
Coleen Phillimore
3c70d99eda 8055008: Clean up code that saves the previous versions of redefined classes
Use scratch_class to find EMCP methods for breakpoints if the old methods are still running.

Reviewed-by: dcubed, sspitsyn
2014-09-03 19:13:18 -04:00
Christian Tornqvist
3a78ac3c1b 8041727: [TESTBUG] runtime/jsig/Test8017498.sh fails with Test8017498.sh: 50: [: x/usr/bin/gcc: unexpected operator
Fixed shell script issues

Reviewed-by: dcubed, gtriantafill
2014-08-26 13:07:57 -07:00
Christian Tornqvist
05c6411eed 8055844: [TESTBUG] test/runtime/NMT/VirtualAllocCommitUncommitRecommit.java fails on Solaris Sparc due to incorrect page size being used
Use 128KB chunks for virtual memory operations

Reviewed-by: zgu, gtriantafill
2014-08-22 14:21:41 -07:00
George Triantafillou
3f590aeec4 8055765: Misplaced @key stress prevents MallocSiteHashOverflow.java and MallocStressTest.java tests from running
Reviewed-by: ctornqvi, zgu, hseigel
2014-08-22 06:28:14 -07:00
George Triantafillou
311638a602 8055684: runtime/NMT/CommandLineEmptyArgument.java fails
Reviewed-by: ctornqvi, sla
2014-08-21 14:37:39 -07:00
George Triantafillou
2d90aac381 8055053: [TESTBUG] runtime/NMT/VirtualAllocCommitUncommitRecommit.java fails
Reviewed-by: ctornqvi, zgu
2014-08-22 07:38:42 -07:00
George Triantafillou
663ff7ad59 8055052: [TESTBUG] runtime/NMT/JcmdDetailDiff.java fails on Windows when there are no debug symbols available
Reviewed-by: ctornqvi, hseigel
2014-08-22 06:46:29 -07:00
Christian Tornqvist
bf8c47fafe 8055814: [TESTBUG] runtime/NMT/NMTWithCDS.java fails with product builds due to missing UnlockDiagnosticVMOptions
Passing -XX:+UnlockDiagnosticVMOptions to ProcessBuilder

Reviewed-by: zgu, gtriantafill
2014-08-22 09:30:57 -07:00
Christian Tornqvist
655556a4bf 8055164: [TESTBUG] runtime/CompressedOops/CompressedClassPointers.java fails with OpenJDK build
Removed explicit check for HotSpot in output

Reviewed-by: sla, coleenp, hseigel
2014-08-20 14:59:08 -07:00
Zhengyu Gu
4ef9e6c2bc Merge 2014-08-19 10:04:29 -04:00
George Triantafillou
1a1ce4534e 8055051: runtime/NMT/CommandLineEmptyArgument.java fails
Disable failing test

Reviewed-by: ctornqvi, zgu
2014-08-19 06:47:28 -07:00
George Triantafillou
8fe87f3da7 8054711: [TESTBUG] Enable NMT2 tests after NMT2 is integrated
Enable tests for NMT2

Reviewed-by: ctornqvi, zgu
2014-08-18 11:56:12 -07:00
Zhengyu Gu
7bce315059 8055061: assert at share/vm/services/virtualMemoryTracker.cpp:332 Error: ShouldNotReachHere() when running NMT tests
Handled CDS mapping region and added test for the scenario

Reviewed-by: coleenp, ctornqvi
2014-08-19 09:05:55 -04:00
Serguei Spitsyn
bc23c9949e Merge 2014-08-15 11:25:55 -07:00
Christian Tornqvist
2d98294837 8032999: [TESTBUG] JT-Reg Runtime tests to be run as part of JPRT submit job
JPRT will now run most of the tests in /runtime

Reviewed-by: dcubed, mseledtsov, zgu, mikael
2014-08-14 18:14:07 -07:00
Jon Masamitsu
5a22518210 Merge 2014-08-14 18:42:08 +00:00
Christian Tornqvist
69c1d825ff 8054713: [TESTBUG] runtime/jsig/Test8017498.sh: Execution failed: exit code 1
Changed output directory of gcc to avoid permission problems

Reviewed-by: coleenp, minqi
2014-08-12 17:29:47 -07:00
Christian Tornqvist
0604ebb2bf Merge 2014-08-12 21:18:14 +00:00
George Triantafillou
89c5882d2e 8054952: [TESTBUG] Add missing NMT2 tests
The new NMT2 tests got lost on the way into jdk9 yesterday, this change adds them.

Reviewed-by: coleenp, zgu, ctornqvi
2014-08-12 14:06:41 -07:00
George Triantafillou
69e7c05210 8044140: Create NMT (Native Memory Tracking) tests for NMT2
Create new/modify existing tests for NMT2, which is an internal redesign to address scalability issues in the first implementation.

Reviewed-by: ctornqvi, zgu
2014-08-11 07:30:46 -07:00
Andrey Zakharov
dd95f0a0c2 8011397: JTREG needs to copy additional WhiteBox class file to JTwork/scratch/sun/hotspot
Reviewed-by: kvn, iignatyev, mgerdin
2014-08-11 17:12:41 +04:00
Vladimir Kozlov
648272884a Merge 2014-08-08 10:35:05 -07:00
Harold Seigel
1c5ed7ab4c 8046233: VerifyError on backward branch
Remove check that causes the VerifyError

Reviewed-by: dholmes, coleenp, acorn
2014-08-05 09:11:35 -04:00
Christian Tornqvist
71d23aa793 8053956: [TESTBUG] Remove @ignore tag from fixed runtime issues
Removed ignore tags from already fixed tests

Reviewed-by: gtriantafill, dcubed
2014-07-31 11:56:59 -07:00
Igor Ignatyev
ebcdde4222 8051896: jtreg tests don't use $TESTJAVAOPTS
Reviewed-by: kvn, ctornqvi
2014-08-03 12:04:17 +04:00
Igor Ignatyev
726b299ae0 Merge 2014-07-19 13:43:02 +04:00
Igor Ignatyev
e6b1dd586f 8032449: Get rid of JMX in test/compiler
Reviewed-by: kvn
2014-07-19 00:34:20 +04:00
Coleen Phillimore
06cea98803 8048933: -XX:+TraceExceptions output should include the message
Add the exception detail message to the tracing output

Reviewed-by: minqi, dholmes
2014-07-09 22:37:48 -04:00
Joe Darcy
4f7e4160a0 8048620: Remove unneeded/obsolete -source/-target options in hotspot tests
Reviewed-by: dholmes, hseigel
2014-07-07 12:08:07 -04:00
Harold Seigel
08e90ebfcb 8026894: Improve VerifyError message about overriding a final method
Add full class name to error message.

Reviewed-by: fparain, zgu, lfoltan
2014-07-03 10:25:42 -04:00
Christian Tornqvist
30b9c7d9cb 8048076: [TESTBUG] runtime/Unsafe/RangeCheck.java fails with -Xcomp
Compiler intrinsics doesn't have this assert, disabled the intrinsics to make sure we go through the VM

Reviewed-by: lfoltan, coleenp
2014-06-25 13:03:29 -07:00
Christian Tornqvist
33a0064f97 8047939: [TESTBUG] Rewrite test/runtime/8001071/Test8001071.sh
Rewrote the test in Java, limited the heap size to avoid time out issues on machines with a lot of memory

Reviewed-by: minqi, rdurbin, dcubed
2014-06-24 07:10:06 -07:00
Jesper Wilhelmsson
3e005941e7 Merge 2014-09-15 13:32:30 +00:00
Erik Helin
1d4a5e9412 8049536: os::commit_memory on Solaris uses aligment_hint as page size
Reviewed-by: stefank, tschatzl
2014-09-15 10:57:22 +02:00
Christian Tornqvist
5cfb709349 8047878: [TESTBUG] runtime/memory/ReadFromNoaccessArea.java and runtime/memory/ReserveMemory.java time out on Solaris
Limited heap size to reduce size of core file generated

Reviewed-by: sla, coleenp, dcubed
2014-06-23 14:51:10 -07:00
Pavel Chistyakov
d9a2dbc73b 8044818: [TESTBUG] runtime/CDSCompressedKPtrs/XShareAuto.java fails with RuntimeException 'sharing' found in stderr
Reviewed-by: hseigel, lfoltan, coleenp, dholmes
2014-06-22 21:23:32 -04:00
George Triantafillou
32cd848b56 8038074: [TESTBUG] Add test for anewarray instruction with more than 255 dimensions
Reviewed-by: lfoltan, coleenp
2014-06-20 10:12:02 -07:00
Daniel D. Daugherty
833620662c 8046287: [TESTBUG] runtime/Thread/TestThreadDumpMonitorContention.java failed error_cnt=12
Added a new header waiting pattern to catch the case where the target thread waiting on a condition (like a VM op); several other test improvements

Reviewed-by: sspitsyn, dholmes
2014-06-12 15:57:16 -07:00
Harold Seigel
70c76ec8c4 8044738: Check attribute_length of EnclosingMethod attribute
Add check that attribute_length == 4.

Reviewed-by: fparain, coleenp, lfoltan
2014-06-10 14:04:37 -04:00
Mikhailo Seledtsov
36d332413d 8038587: [TESTBUG] Create CDS tests to exercise region sizes and base address
Added new tests to cover missing CDS basic funtions

Reviewed-by: coleenp, ctornqvi
2014-06-02 21:36:59 -04:00
Christian Tornqvist
fd282f6e9a 8044364: runtime/RedefineFinalizer test fails on windows
Rewrote the test in pure Java, added RedefineClassHelper utility class

Reviewed-by: coleenp, allwin, gtriantafill, dsamersoff
2014-06-02 19:08:18 +02:00
Coleen Phillimore
3656168efc Merge 2014-06-01 11:56:15 -04:00
Christian Thalinger
8f1c6dfff7 Merge 2014-05-30 09:49:53 -07:00
Daniel D. Daugherty
ad6d8d6abd 8036823: Stack trace sometimes shows 'locked' instead of 'waiting to lock'
Add a !owner check for 'waiting to lock' to catch current_pending_monitor corner cases.

Co-authored-by: Krystal Mok <rednaxelafx@gmail.com>
Co-authored-by: Zhengyu Gu <zhengyu.gu@oracle.com>
Reviewed-by: dholmes, sspitsyn, kmo, zgu
2014-05-30 07:20:51 -07:00
Christian Tornqvist
436e1ecdf2 8043786: [TESTBUG] runtime/CommandLine/TestHexArguments.java test fails in nightly
Changed test to not pass on external flags to child processes

Reviewed-by: coleenp, hseigel
2014-05-28 22:59:29 +02:00
Dmitry Samersoff
c291efb1df 6904403: assert(f == k-&gt;has_finalizer(),&quot;inconsistent has_finalizer&quot;) with debug VM
Don't assert if one of classes in hierarhy was redefined

Reviewed-by: coleenp, sspitsyn
2014-05-28 07:36:32 -07:00
Kirill Shirokov
20674a667a 8032970: Add stack size check methods to WhiteBox API
Reviewed-by: twisti, kvn, iignatyev
2014-05-24 00:04:21 +04:00
Dmitry Samersoff
e70b7ac623 8042155: [TESTBUG] Tests for stack guard pages have to be cleaned up
Tests for 6929067 and 8009062 should be composed to single test that provide better testing for stack guard pages behaviour

Reviewed-by: coleenp, dcubed, dsimms
2014-05-22 13:22:09 -07:00
Yumin Qi
ec3e742de1 8042885: java does not take hexadecimal number as vm option
Java does not take number with hexadecimal format as options, fix enable hexadecimal format number can be used as vm option.

Reviewed-by: coleenp, lfoltan, ctornqvi, hseigel, mseledtsov
2014-05-15 20:16:14 -07:00
Lois Foltan
ca501f6b00 8041918: BootstrapMethods attribute cannot be empty
Allow a BootstrapMethods attribute that contains an empty bootstrap_methods table where num_bootstrap_methods is equal to zero.

Reviewed-by: coleenp, hseigel
2014-05-15 09:25:27 -04:00
Christian Tornqvist
d8ec75da34 8042595: [TESTBUG] runtime/7110720/Test7110720.sh rarely fails with message "explicit compiler command file not read"
Removed the shell test and moved the testcases into the already existing Java based tests

Reviewed-by: coleenp, lfoltan
2014-05-14 18:18:58 +02:00
Mikhailo Seledtsov
6e58e65cf7 8041938: [TESTBUG] runtime/SharedArchiveFile/CdsWriteError.java failed in RT_Baseline with 'Unable to create shared archive file' missing from stdout/stderr
His test is unstable in automated testing system, team agreed to remove it

Reviewed-by: coleenp, gtriantafill
2014-05-14 10:38:40 -04:00
Harold Seigel
976e7c8aa7 8040292: Annotation attributes must not appear more than once
Add checks for duplicate attributes.

Reviewed-by: coleenp, lfoltan
2014-05-12 13:12:30 -04:00
Coleen Phillimore
7e2463ea72 8023697: failed class resolution reports different class name in detail message for the first and subsequent times
Cache detail message when we cache exception for constant pool resolution.

Reviewed-by: acorn, twisti, jrose
2014-05-05 19:53:00 -04:00
Harold Seigel
cfa7d828d9 8040018: Remove bad assert in ClassFileParser.cpp
Remove assert that prevent throwing valid exception

Reviewed-by: coleenp, lfoltan
2014-04-18 08:51:34 -04:00
Christian Tornqvist
db9dcbd63b 8040887: [TESTBUG] Remove test/runtime/6925573/SortMethodsTest.java
Removed test/runtime/6925573/SortMethodsTest.java

Reviewed-by: coleenp, rdurbin
2014-04-18 00:19:24 +02:00
Christian Tornqvist
961a489536 6959423: [TESTBUG] runtime/6925573/SortMethodsTest.java times out
Decreased maximum number methods in generated classes and decreased ratio to make it reproduce more often

Reviewed-by: coleenp, lfoltan
2014-04-17 00:03:58 +02:00
Christian Tornqvist
ff48970954 8035173: [TESTBUG] runtime/threads/CancellableThreadTest fails with OOM on windows-i586
Test ported to jtreg, thread pairs decreased from 1024 to 128 to avoid OOM on 32 bit Windows

Reviewed-by: sla, dsimms
2014-04-15 19:03:51 +02:00
Lois Foltan
5ca274e0ce 8038076: constraint on multianewarray instruction is not checked since class version 50
No VerifiyError generated if multianewarray bytecode's array type descriptor was 1 dimension smaller than dimensions specified.

Reviewed-by: hseigel, ctornqvi, coleenp, kamg
2014-04-14 10:13:03 -04:00
Dmitry Samersoff
b1295fc704 Merge 2014-04-09 15:01:24 +00:00
Dmitry Samersoff
f359b1fb2c 8029139: [TESTBUG] runtime/InitialThreadOverflow/testme.sh fails with exit code 127
The test launcher compiles against TESTJAVA but LD_LIBRARY_PATH set to COMPILE java.

Reviewed-by: sla, sspitsyn
2014-04-09 07:08:08 -07:00
Dmitry Samersoff
0301b791ef 8037279: runtime/6929067/Test6929067.sh crashes on 32bit linux
The test compile launcher with TESTJAVA but attempt to load vm from COMPILEJAVA

Reviewed-by: sla, sspitsyn
2014-04-09 06:09:43 -07:00
Christian Tornqvist
3c7ebc1745 8028733: [TESTBUG] Remove test exclusion for runtime/6626217/Test6626217.sh
Removed @ignore tag from Test6626217.sh, the fix for 7015395 had already solved the issue but left the @ignore tag

Reviewed-by: sla, lfoltan, gtriantafill
2014-04-02 14:15:39 +02:00
Christian Tornqvist
c3c7dcd507 7049895: [TESTBUG] vmerrors.sh should suppress windows .mdmp files
Added -XX:-CreateMinidumpOnCrash to vmerror.sh to suppress creation of dumps on Windows

Reviewed-by: coleenp, allwin, zgu
2014-04-01 22:39:09 +02:00
Christian Tornqvist
0b0fdb97ce 8007890: [TESTBUG] JcmdWithNMTDisabled.java fails when invoked with NMT explicitly turned on
Wrapped the test in another layer process creation to avoid NMT being turned on.

Reviewed-by: coleenp, dcubed
2014-03-27 22:36:08 +01:00
Mikhailo Seledtsov
3c58faecfe 8032222: [TESTBUG] runtime/SharedArchiveFile/CdsWriteError.java fails on Mac OS with java.lang.RuntimeException
Excluded the test from running on Mac OS

Reviewed-by: coleenp, ctornqvi
2014-03-25 09:26:18 -04:00
Mikhailo Seledtsov
ce25911489 8026154: [TESTBUG] runtime/CDSCompressedKPtrs/XShareAuto.java failed due to exception
Added statements in the tests to handle failures in sharing

Reviewed-by: zgu, ctornqvi
2014-03-10 14:50:20 -04:00
Coleen Phillimore
e8d4b7aee3 8036547: test/runtime/CompressedOops/CompressedClassPointers.java fails with product build since -XX:+PrintMiscellaneous is a debug only flag
Use PrintCompressedOopsMode and these other flags that match printing compressed oop information

Reviewed-by: ctornqvi, sla
2014-03-04 09:57:16 -05:00
Staffan Larsen
1d81fd35d6 8036010: hs: Some jtreg tests use hard coded ports
Bind to an ephemeral port

Reviewed-by: jbachorik, sla
2014-02-28 14:30:25 +04:00
Calvin Cheung
bfbc3a0d51 8025519: [TESTBUG] runtime/7107135/Test7107135.sh need to use COMPILEJAVA for javac task
Modified some tests to use COMPILEJAVA instead of TESTJAVA for javac and include path

Reviewed-by: dholmes, mseledtsov
2014-02-24 21:54:22 -08:00
George Triantafillou
70c77b3470 8034898: [TESTBUG]: Zero failure project - tag all Runtime JTReg bugs that fail nightly
Use @ignore to exclude failing tests

Reviewed-by: coleenp, ctornqvi, mseledtsov
2014-02-20 16:38:45 -05:00
Coleen Phillimore
a9868648e6 7014526: "java -version" crash on sparc with some values of HeapBaseMinAddress
Make default HeapBaseMinAddress the minimum that can be specified.

Reviewed-by: minqi, kvn, tschatzl, dholmes
2014-02-19 02:58:13 +00:00
Coleen Phillimore
db6974faf7 8035132: [TESTBUG] test/runtime/lambda-features/InvokespecialInterface.java test has unrecognized option
Add IgnoreUnrecognizedVMOptions for product mode run

Reviewed-by: ctornqvi, dholmes
2014-02-18 09:54:24 -05:00
Shanliang Jiang
c9b3cbbdcc 8007710: runtime/7158988/FieldMonitor.java fails with com.sun.jdi.VMDisconnectedException: Connection closed
Reviewed-by: sla, jbachorik, sspitsyn
2014-02-14 16:17:22 +01:00
Christian Tornqvist
dd25d6fed0 8016644: Improve UnsupportedClassVersionError message
Improved the UnsupportedClassVersionError message to hopefully be more user friendly

Reviewed-by: coleenp, dholmes, twisti
2014-02-10 17:49:17 +01:00
Coleen Phillimore
2759eb10ae 8033528: assert(0 <= i && i < length()) failed: index out of bounds
Restoring bytecodes for invokedynamic had wrong index calculation added testing stress option.

Reviewed-by: twisti, hseigel
2014-02-07 18:30:27 -05:00
Coleen Phillimore
3eb1ac89c6 8028735: runtime/RedefineObject/TestRedefineObject.java interrupted (timed out?) on solaris_sparcv9-fastdebug-c2-runtime and solaris_x64-debugOpen-c2-runtime
Change GC loop counter to 100 which is enough to test the original problem but doesn't timeout the test.

Reviewed-by: ctornqvi, lfoltan, mseledtsov, sla
2014-02-06 18:57:46 +00:00
Calvin Cheung
a3c78aac2f 8032010: Attempt to resolve abstract method in concrete class fails with AbstractMethodError
Removing a check in LinkResolver::resolve_method() to conform with a change in JVMS-8 5.4.3.3. Method Resolution

Reviewed-by: coleenp, lfoltan
2014-02-05 15:14:47 -08:00
Gerard Ziemski
7591b3dd89 7015395: [TESTBUG] runtime/6626217/Test6626217.sh fails if compilation happens fast enough for timestamps to be equal
Insert 2 second sleep between copying of the src files and the compilation, to make sure the timestamps of *.class files are in the future of *.java files.

Reviewed-by: coleenp, fparain
2014-01-21 16:45:10 -06:00
Harold Seigel
39f19c2f76 8028553: The JVM should not throw VerifyError when 'overriding' a static final method in a superclass
Check if method is static before throwing exception.

Reviewed-by: kamg, coleenp, lfoltan, fparain
2014-01-24 08:13:42 -05:00
Coleen Phillimore
d6a0a9d513 8032024: Test not added for bug 8025937: assert(existing_f1 == NULL || existing_f1 == f1) failed: illegal field,change
Test didn't get hg added with original bug fix

Reviewed-by: jrose, hseigel, lfoltan
2014-01-17 11:21:29 -05:00
Calvin Cheung
7f34fe7eee 8027314: Java should recognize Diagnostic options if -XX:+UnlockDiagnosticVMOptions is not specified and print an informative message
Clarifying the error messages associated with vm options of type diagnostic, experimental, develop, and notproduct

Reviewed-by: kvn, twisti, ctornqvi
2014-01-16 10:51:16 -08:00
Mikhailo Seledtsov
735887477f 8031151: Add basic CDS tests
Added new tests to cover missing CDS basic funtions

Reviewed-by: zgu, hseigel
2014-01-15 19:12:45 -05:00
David Simms
3529de993d 6945460: [TESTBUG] runtime/6929067/Test6929067.sh
Change link order for the test

Reviewed-by: coleenp, mgerdin
2014-01-15 11:46:19 +01:00
George Triantafillou
e5a5aefdfb 8028398: [TESTBUG]: test/runtime/memory/ReadFromNoaccessArea.java failed with EXCEPTION_ACCESS_VIOLATION
Remove ignore label

Reviewed-by: sla, mseledtsov
2014-01-14 13:51:47 -05:00
Zhengyu Gu
509d617369 8031530: [TESTBUG] Enable test runtime/LoadClass/LoadClassNegative.java
Re-enabled the test. The issue that prevents this test from running was fixed by 8020675

Reviewed-by: sla, ccheung
2014-01-13 10:05:37 -05:00
Harold Seigel
f84476eec5 Merge 2014-01-13 18:30:57 -05:00
Morris Meyer
a665235538 Merge 2014-01-10 12:54:08 -08:00
Calvin Cheung
9d16ac7083 8022301: [TESTBUG] runtime/jsig/Test8017498.sh incorrectly compiles native code
Added the '-m32' compile option and the '-z noexecstack' link option

Reviewed-by: mseledtsov, zgu
2014-01-09 15:48:00 -08:00
Harold Seigel
6794647135 8030955: assert(_prologue != NULL) failed: prologue pointer must be initialized
Allow multiple calls to PerfMemory::destroy()

Reviewed-by: zgu, coleenp
2014-01-06 08:44:24 -05:00
Mikael Vidstedt
a0da47fd66 8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013
Copyright year updated for files modified during 2013

Reviewed-by: twisti, iveresov
2013-12-24 11:48:39 -08:00
Harold Seigel
ac9faf4243 8023735: [TESTBUG] runtime/XCheckJniJsig/XCheckJSig.java fails on MacOS X
Look for libjsig in correct locations and do not fail if it's not found

Reviewed-by: zgu, ccheung
2013-12-23 18:44:59 -05:00
George Triantafillou
dbde42105e 8021774: [TESTBUG] Tests failed because of a warning in its output
Remove check for warning

Reviewed-by: zgu, mseledtsov
2013-12-23 10:13:42 -05:00
Lois Foltan
5ece6fc7fd 8028741: Interface Method Resolution should skip static and non-public methods in j.l.Object
Implementation of JDK 8 JVMS 5.4.3.4 specification change to skip static and non-public methods of java.lang.Object for interface method resolution.

Reviewed-by: acorn, coleenp
2013-12-10 16:18:26 -05:00
Karen Kinnear
b5f2f33aaa 8026066: ICCE for invokeinterface static
Reviewed-by: coleenp, lfoltan, hseigel
2013-12-03 08:36:15 -08:00
George Triantafillou
1ee6fad9ba 8028160: [TESTBUG] Exclude failing (runtime) jtreg tests using @ignore
Use @ignore to exclude failing tests

Reviewed-by: coleenp, ctornqvi, mseledtsov
2013-11-26 16:03:57 -05:00
Mikael Gerdin
0a6481ef3a Merge 2013-11-08 23:49:20 +00:00
Alkesey Timofeev
722d25b2dd 8027237: New tests on ReservedSpace/VirtualSpace classes
Three tests added: 1) test stressing VirtualSpace by resizing it constantly 2) test running unit tests in several threads 3) test checking protected area in ReservedHeapSpace class

Reviewed-by: stefank, zgu
2013-11-08 16:48:21 +01:00
Alejandro Murillo
930baab448 Merge 2013-11-05 14:06:23 -08:00
Lana Steuck
fdb505344e Merge 2013-10-30 13:43:16 -07:00
Coleen Phillimore
3e6630c07b 8024927: Nashorn performance regression with CompressedOops
Allocate compressed class space at end of Java heap.  For small heap sizes, without CDS, save some space so compressed classes can have the same favorable compression as oops

Reviewed-by: stefank, hseigel, goetz
2013-10-25 15:19:29 -04:00
Harold Seigel
286c6a3d50 Merge 2013-10-22 22:14:57 -04:00
Mikhailo Seledtsov
4ac64cd06d 8026809: [TESTBUG] Create regression test for JDK-8026041
Created simple regression test for the bug

Reviewed-by: hseigel, lfoltan, zgu
2013-10-22 15:54:50 -04:00
Lois Foltan
033c5b68ea 8026394: Eclipse fails with JDK8 build 111
If the resolved interface does not itself contain "clone" or "finalize" methods, the method/interface method resolution looks to the interface's super class, java.lang.Object.  With the JDK 8 interface method accessability check requirement, since these two methods are declared within Object as protected, they must be special cased in LinkResolver::check_method_accessability() in order to avoid an IAE.

Reviewed-by: acorn, dholmes
2013-10-22 14:47:59 -04:00
Karen Kinnear
0e34fa065a 8026893: Push 8026365 to TL early and add test
Reviewed-by: dcubed, kamg
2013-10-19 18:32:34 -04:00
Lois Foltan
21627fb02f 8024804: Crash when InterfaceMethodref resolves to Object.registerNatives
Added check for NULL prior to continuation of method look up to avoid runtime crash during look up of Object's superclass' methods.

Reviewed-by: coleenp, hseigel
2013-10-16 14:32:05 -04:00
John Coomes
e61cbf8d69 Merge 2013-10-11 08:27:21 -07:00
Mikhailo Seledtsov
2b82651ec0 8023796: [TESTBUG] Add -XX:-TransmitErrorReport to runtime/6888954/vmerrors.sh
Added -XX:-TransmitErrorReport to the test

Reviewed-by: stefank, ctornqvi
2013-10-06 16:13:50 +02:00
Stefan Karlsson
3b34e78d20 8024838: Significant slowdown due to transparent huge pages
Don't turn on transparent huge pages (-XX:+UseTransparentHugePages) unless explicitly specified on the command line. This has the effect that large pages are never turned on Linux unless the user has explicitly enabled any of the large pages flags: -XX:+UseLargePages, -XX:+UseTransparentHugePages, -XX:+UseHugeTLBFS, and -XX:+UseSHM.

Reviewed-by: jwilhelm, tschatzl, brutisso
2013-10-05 10:14:58 +02:00
Daniel D. Daugherty
156b06d897 Merge 2013-09-20 12:58:35 -07:00
Harold Seigel
a1f3a95880 8024517: runtime/CDSCompressedKPtrs/XShareAuto.java failed with RuntimeException
Make sure CDS is off by default when running server compiler.

Reviewed-by: dholmes, coleenp
2013-09-19 11:04:23 -04:00
Thomas Schatzl
9005953c71 Merge 2013-09-19 09:26:08 +02:00
Mikhailo Seledtsov
876967ae1f 7149464: [TESTBUG] Test runtime/7020373/Test7020373.sh failed to clean up files after test
Re-wrote in Java, this also eliminated temporary result file; set upper limit on malloc'd memory

Reviewed-by: dcubed, dholmes, ccheung
2013-09-17 20:20:03 +02:00
Mikhailo Seledtsov
a19b450d56 8016029: test runtime/6878713/Test6878713.sh failed
Rewrote test in Java; updated the test condition to reflect latest changes in the source

Reviewed-by: dholmes, ctornqvi
2013-09-17 20:09:32 +02:00
Dmitry Samersoff
eaa4cfd4a7 8024056: runtime/InitialThreadOverflow/testme.sh fails
On some macines gcc not able to link cxx program

Reviewed-by: dholmes
2013-09-11 14:30:17 +04:00
Harold Seigel
a320f6a566 8023381: VM fails to initialize in runtime/CDSCompressedKPtrs/XShareAuto.java runtime/SharedArchiveFile/CdsSameObjectAlignment.java
Improve handling when CDS archive cannot be mapped

Reviewed-by: kvn, dholmes, mseledtsov
2013-09-01 10:37:01 -04:00
Daniel D. Daugherty
379674be8f Merge 2013-08-30 07:04:42 -07:00
Dmitry Samersoff
98c327bc7d 8009062: poor performance of JNI AttachCurrentThread after fix for 7017193
Don't re-evaluate stack bounds for main thread before install guard page

Reviewed-by: coleenp, dholmes, dlong
2013-08-29 21:48:23 +04:00
David Holmes
e5e78099db Merge 2013-08-29 00:22:13 -04:00
Yumin Qi
137cb8d4ee Merge 2013-08-27 07:54:05 -07:00
Calvin Cheung
4415ae47cd 8020675: invalid jar file in the bootclasspath could lead to jvm fatal error
Removed offending EXCEPTION_MARK calls and code cleanup

Reviewed-by: dholmes, iklam, coleenp, mseledtsov
2013-08-26 14:11:26 -07:00
Aleksey Shipilev
9f4ed448a0 8023638: Add the regression test for 8006997
Add the relevant test and proofread the VM messages as well

Reviewed-by: coleenp, mseledtsov, dcubed
2013-08-26 17:42:03 +04:00
Chris Plummer
a8f6ab1f52 8020829: JT_HS: 2 runtime NMT tests fail on platforms if NMT detail is not supported
Make tests query a new WhiteBox API to see if NMT detail is supported, and behave properly if it is not supported.

Reviewed-by: dholmes, coleenp
2013-08-23 12:36:32 -07:00
Harold Seigel
2df9b70f5e 7121403: [TESTBUG] runtime/7051189/Xchecksig.sh fails on 64bit solaris
8023393: Need to suppress info message if -Xcheck:jni used with libjsig.dylab on Mac OSX

Rewrite 7051189 test in Java, port Linux fix for 7051189 to Mac OSX.

Reviewed-by: coleenp, dholmes, mseledtsov, ccheung
2013-08-22 11:52:27 -04:00
Harold Seigel
4d91f4e69d 8003424: Enable Class Data Sharing for CompressedOops
8016729: ObjectAlignmentInBytes=16 now forces the use of heap based compressed oops
8005933: The -Xshare:auto option is ignored for -server

Move klass metaspace above the heap and support CDS with compressed klass ptrs.

Reviewed-by: coleenp, kvn, mgerdin, tschatzl, stefank
2013-08-15 20:04:10 -04:00
Coleen Phillimore
a25f924de6 8009728: nsk/jvmti/AttachOnDemand/attach030 crashes on Win32
ActiveMethodOopsCache was used to keep track of old versions of some methods that are cached in Universe but is buggy with permgen removal and not needed anymore

Reviewed-by: sspitsyn, dcubed, mseledtsov
2013-08-12 17:24:54 -04:00
Erik Helin
30f059b5fc 8015107: NPG: Use consistent naming for metaspace concepts
Reviewed-by: coleenp, mgerdin, hseigel
2013-08-12 17:37:02 +02:00
Yumin Qi
418cc392cc 8019583: [TESTBUG] runtime/7107135 always passes
If java test return none zero, the value will be override by 'if' statement, the exit value will always '0' and pass. Fix by recording the result in a variable.

Reviewed-by: coleenp, dholmes, iklam
2013-08-08 15:19:12 -07:00
Christian Tornqvist
cab1b96d23 8009585: test/runtime/7196045 times out
Test/runtime/7196045 times out

Reviewed-by: dholmes, mseledtsov
2013-08-02 18:12:10 +02:00
Christian Tornqvist
6596ca7512 8009407: runtime/8000968/Test8000968.sh has incorrect check for proper config
Runtime/8000968/Test8000968.sh has incorrect check for proper config

Reviewed-by: coleenp, mseledtsov, sspitsyn, hseigel
2013-08-01 22:25:11 +02:00
Calvin Cheung
7e63c7bb0f 8021296: [TESTBUG] Test8017498.sh fails to find "gcc" and fails to compile on some Linux releases
Added checking for gcc and simplified the sig_handler() in the test case

Reviewed-by: dcubed, coleenp, minqi, dlong
2013-07-30 14:14:25 -07:00
Calvin Cheung
3102612ca2 8020791: [TESTBUG] runtime/jsig/Test8017498.sh failed to compile native code
Added -DLINUX to the gcc command and improved the .sh script

Reviewed-by: dcubed, dholmes, minqi
2013-07-19 14:54:54 -07:00
Daniel D. Daugherty
c421e7a0d3 Merge 2013-07-18 12:05:32 -07:00
Calvin Cheung
ef70244a9a 8017498: JVM crashes when native code calls sigaction(sig) where sig>=0x20
Added (sig < MAXSIGNUM) check in jsig.c

Reviewed-by: dholmes, acorn
2013-07-17 12:22:57 -07:00
David Katleman
6043666187 Merge 2013-07-16 15:15:43 -07:00
David Katleman
d939aea838 8020414: JDK8 b98 source with GPL header errors
Reviewed-by: darcy, lancea, iris
2013-07-11 14:07:26 -07:00
Frederic Parain
7f314c6d87 Merge 2013-07-05 08:09:40 -07:00
Daniel D. Daugherty
765f5cd4e7 8015884: runThese crashed with SIGSEGV, hs_err has an error instead of stacktrace
Dl_info struct should only be used if dladdr() has returned non-zero (no errors) and always check the dladdr() return value; Dl_info.dli_sname and Dl_info.dli_saddr fields should only be used if non-NULL; update/improve runtime/6888954/vmerrors.sh test

Reviewed-by: dsamersoff, zgu, hseigel, coleenp
2013-07-04 21:10:17 -07:00
Roland Westrelin
bc15de549e Merge 2013-07-04 03:41:57 -07:00
Jiangli Zhou
bf2a400ca2 8006023: Embedded Builds fail management test because of requirement for UsePerfData being enabled
Added -XX:+UsePerfData to Test7196045.java.

Reviewed-by: dholmes, collins
2013-07-01 19:44:37 -04:00
Filipp Zhinkin
68c516f654 8006629: NEED_TEST: need test for JDK-8001071
Added regression test

Reviewed-by: kvn, coleenp
2013-07-01 12:22:34 -07:00
Mikhailo Seledtsov
e1219b994d 8015324: Create tests for CDS feature
Wrote tests for use of CDS with ObjectAlignmentInBytes CL option

Reviewed-by: coleenp, ctornqvi, hseigel
2013-06-13 22:00:06 +02:00
Christian Tornqvist
e72f763439 8016065: Write regression test for 7167142
Regression tests written for both test cases (.hotspotrc and .hotspot_compiler). Also reviewed by mikhailo.seledtsov@oracle.com

Reviewed-by: zgu, coleenp
2013-06-13 21:57:56 +02:00
Mikhailo Seledtsov
6a7e90e362 6726963: multi_allocate() call does not CHECK_NULL and causes crash in fastdebug bits
Using CHECK_NULL when calling multi_allocate() from the corresponding reflection code; added test for this condition

Reviewed-by: dholmes, minqi
2013-05-31 20:24:58 +02:00
Joel Borggren-Franck
6d51346158 8014709: Constructor.getAnnotatedReturnType() returns empty AnnotatedType
Reviewed-by: stefank, rbackman
2013-05-31 13:02:24 +02:00
Aleksey Shipilev
0793ab7e65 8015493: runtime/contended/OopMaps.java fails with OutOfMemory
Limit the memory footprint to dodge OutOfMemory errors.

Reviewed-by: dcubed, ctornqvi, iignatyev
2013-05-28 19:54:18 +04:00
Aleksey Shipilev
375e12feb9 8015270: @Contended: fix multiple issues in the layout code
Field count handling fixed, has_nonstatic_fields invariant fixed, oop map overrun fixed; new asserts

Reviewed-by: kvn, dcubed, coleenp
2013-05-27 12:49:08 -07:00
Christian Tornqvist
bd53fa8370 8009576: Test returns ClassNotFoundException
Small classpath fix and move tests into open

Reviewed-by: mgerdin, zgu
2013-05-23 17:39:32 +02:00
Mikael Vidstedt
de93893f4e 8013726: runtime/memory/ReserveMemory.java fails due to 'assert(bytes % os::vm_allocation_granularity() == 0) failed: reserve block size'
Fix regression test to work on all platforms

Reviewed-by: ctornqvi, dholmes
2013-05-21 09:43:23 -07:00
Aleksey Shipilev
7efa591bee 8014871: Move @Contended regression tests to the same place
Move the missing test to appropriate location.

Reviewed-by: dholmes, sla
2013-05-20 15:43:50 +04:00
Aleksey Shipilev
efe96b1343 8014509: @Contended: explicit default value behaves differently from the implicit value
Treat the empty string as the default value tag

Reviewed-by: kvn, twisti
2013-05-17 01:58:32 +04:00
Aleksey Shipilev
2fd72e202f 8012939: @Contended doesn't work correctly with inheritance
Fix instance_size miscalculation.

Reviewed-by: jrose, kvn
2013-05-17 01:43:48 +04:00
Mikhailo Seledtsov
bb4af57bdd 8014511: runtime/RedefineObject/TestRedefineObject.java has incorrect classname in @run tag
Corrected the class name

Reviewed-by: coleenp, ctornqvi, hseigel
2013-05-16 17:54:11 +02:00
Mikhailo Seledtsov
172cc0a06e 8008169: test/runtime/7158804/Test7158804.sh has bad copyright header
Re-wrote test in Java in addition to fixing the Copyright notice. Also reviewed by leonid.mesnik@oracle.com

Reviewed-by: coleenp, ctornqvi
2013-05-16 15:31:00 +02:00
Harold Seigel
3aa20631a9 8014138: Add VM option to facilitate the writing of CDS tests
Added the -XX:SharedArchiveFile option.

Reviewed-by: coleenp, ccheung, acorn, dcubed, zgu
2013-05-14 09:17:52 -04:00
Coleen Phillimore
7a409b13e0 8005056: NPG: Crash after redefining java.lang.Object
Need to walk array class vtables replacing old methods too if j.l.o redefined

Reviewed-by: sspitsyn, dcubed, ctornqvi
2013-05-13 15:37:08 -04:00
Christian Tornqvist
601071bc6d 8009577: Test test/closed/runtime/classunload broken
Fixed tests to use new way of utilizing the WB API, fixed issue with where custom classloader got the classes from

Reviewed-by: collins, mgerdin, zgu
2013-05-07 21:36:59 +02:00
Zhengyu Gu
c2330eb6b1 8013120: NMT: Kitchensink crashes with assert(next_region == NULL || !next_region->is_committed_region()) failed: Sanity check
Fixed NMT to deal with releasing virtual memory region when there are still committed regions within it

Reviewed-by: acorn, coleenp
2013-05-06 11:15:13 -04:00
Bharadwaj Yadavalli
f631e3d253 8013418: assert(i == total_args_passed) in AdapterHandlerLibrary::get_adapter since 8-b87
Do not treat static methods as miranda methods.

Reviewed-by: dholmes, acorn
2013-05-01 08:07:59 -07:00
Mikael Vidstedt
9e8a3585b0 8012015: Use PROT_NONE when reserving memory
Reserved memory had PROT_READ+PROT_WRITE access on Linux/bsd, now changed to PROT_NONE.

Reviewed-by: dholmes, ctornqvi
2013-04-29 11:03:49 -07:00
Christian Tornqvist
c435269587 8009125: Add NMT tests for Virtual Memory operations
Tests added for Reserve/Commit/Uncommit/Unreserve operations

Reviewed-by: zgu, mgerdin
2013-04-03 21:41:33 +02:00
Leonid Mesnik
a4300aa98b 8009763: Add WB test for String.intern()
Add convenience method in StringTable, add WhiteBox method and simple sanity test

Reviewed-by: mgerdin, zgu
2013-04-02 11:28:33 +02:00
Daniel D. Daugherty
2484584e6d Merge 2013-03-29 08:38:00 -07:00
Gary Collins
4970095c03 Merge 2013-03-28 15:42:11 -07:00
Gary Collins
c2a873f014 8009152: A number of jtreg tests need review/improvement
Added a new test_env.txt file to capture common shell variable. Added concept of COMPILEJAVA for use when TESTJAVA is a JRE. If COMPILEJAVA not set then TESTJAVA will be the default with assumption it is a JDK.

Reviewed-by: kvn, brutisso, coleenp
2013-03-27 09:49:51 -07:00
Harold Seigel
366b7e1c5e 8010833: Test7116786.java is failing on most configs after fix for 8010667
Update test to recognize that non-zero pad bytes for lookupswitch/tablewsitch opcodes are now valid.

Reviewed-by: dcubed, twisti, kvn, coleenp, dholmes
2013-03-27 11:41:51 -04:00
Bharadwaj Yadavalli
0e9d409036 8009552: test/vm/verifier/TestStaticIF.java failing with hs25.0-b
Remove support for verification of class files with version 52 and above from type inference verifier.

Reviewed-by: acorn, hseigel
2013-03-25 09:36:15 -07:00