Commit Graph

356 Commits

Author SHA1 Message Date
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
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