Commit Graph

7428 Commits

Author SHA1 Message Date
Aleksey Shipilev
426f339847 8057925: PrintSymbolTableSizeHistogram prints misleading output
Reviewed-by: jrose, kvn, gziemski
2014-09-22 18:34:35 +04:00
Jesper Wilhelmsson
f9b921bd25 Merge 2014-09-22 16:22:21 +02:00
Mikael Gerdin
53b92fe072 8055141: Catch linker errors earlier in the JVM build by not allowing unresolved externals
Reviewed-by: erikj, ehelin, dholmes
2014-09-25 10:01:53 +02:00
Sangheon Kim
30cb2dcb12 8036116: Fix thread-id types in G1 remembered set implementations
Reviewed-by: stefank, jprovino, brutisso
2014-09-24 11:00:12 +02:00
Staffan Larsen
071bfa97d6 Merge 2014-09-23 14:18:55 +02:00
Stefan Karlsson
1a452ae3ae Merge 2014-09-23 12:52:57 +00:00
Joseph Provino
b0b5fa7bc6 8027450: Improve time reporting in G1 remark
Reviewed-by: stefank, tschatzl
2014-09-23 12:34:37 +02:00
Antonios Printezis
da5afa76ab 8058495: G1: normalize names for isHumongous() and friends
Reviewed-by: tschatzl, brutisso
2014-09-23 11:43:24 +02:00
Tobias Hartmann
b9eae7f74f 8058712: [TESTBUG] serviceability/dcmd/CodeCacheTest.java fails with java.lang.Exception
The test is changed to check the output according to the number of available code segments.

Reviewed-by: kvn
2014-09-21 16:13:39 +02:00
Coleen Phillimore
38190eccc4 8058843: TEST.groups has runtime/runtime/7158988/FieldMonitor.java
Remove a runtime

Reviewed-by: ctornqvi, sspitsyn, kvn
2014-09-19 21:13:25 -04:00
Ioi Lam
a2e41921c1 Merge 2014-09-19 13:47:19 -07:00
Niclas Adlertz
37c8ef911c Merge 2014-09-19 17:14:13 +02:00
Harold Seigel
1bae14de54 8057845: ClassVerifier::verify_exception_handler_targets reconstructs the ExceptionTable in a loop
Construct the ExceptionTable only once, before the loop

Reviewed-by: acorn, jiangli, coleenp, lfoltan
2014-09-19 08:19:04 -04:00
Nils Eliasson
17816444dc Merge 2014-09-19 10:24:10 +00:00
Alejandro Murillo
0122d75979 Merge 2014-09-19 01:59:59 -07:00
Nils Eliasson
53bec16184 8058479: serviceability/dcmd/CodeCacheTest.java fails
Don't parse really large hex values into a long

Reviewed-by: kvn, anoll
2014-09-19 10:31:03 +02:00
Lana Steuck
1c350e9d11 Merge 2014-09-18 13:28:15 -07:00
Niclas Adlertz
3ae1e0225a Merge 2014-09-18 18:40:37 +00:00
Jesper Wilhelmsson
e97944b0b1 Merge 2014-09-18 19:41:50 +02:00
Niclas Adlertz
0ef1f8fd6f Merge 2014-09-18 19:30:59 +02:00
Goetz Lindenmaier
c82c59cd8f 8058716: Add include missing in 8015774
Reviewed-by: kvn
2014-09-18 09:37:26 +02:00
Morris Meyer
c468032582 8050022: linux-sparcv9: assert(SharedSkipVerify || obj->is_oop()) failed: sanity check
Provide promoted stack slots for floating-point registers in the SPARC c_calling_convention.

Reviewed-by: kvn, jrose, drchase
2014-09-18 11:46:33 -07:00
Zoltan Majo
e39f822e38 8050407: Add jtreg compiler tests to Hotspot JPRT jobs
Select useful jtreg test. Group tests into four sets (3 sets with open tests, 1 set with closed tests) so that execution time of each set is < 10 min on solaris_sparcv9 (slowest platform).

Reviewed-by: kvn, anoll, roland
2014-09-18 12:23:20 +02:00
Roland Westrelin
37e154c233 Merge 2014-09-18 09:16:12 +00:00
Igor Veresov
ba6a457d68 Merge 2014-09-18 08:32:12 +00:00
Nils Eliasson
99a2ef6914 8058583: Remove CompilationRepeat
Remove product flag -XX:CompilationRepeat

Reviewed-by: kvn, iveresov
2014-09-18 08:47:07 +02:00
David Katleman
0c813c1b9e Added tag jdk9-b31 for changeset 8d0d35462d9b 2014-09-17 22:55:51 -07:00
Igor Veresov
ad7e67c98f 8058564: Tiered compilation performance drop in PIT
Ensure MethodCounters are created before method is enqueued for compilation

Reviewed-by: kvn, drchase, jiangli
2014-09-17 21:15:03 -07: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
Roland Westrelin
2ca3c40687 8058636: test case for 8057758
Missing test case in push for 8057758

Reviewed-by: kvn, iveresov
2014-09-17 14:56:12 +02:00
Tobias Hartmann
964c442938 Merge 2014-09-17 06:05:41 +00:00
Tobias Hartmann
cd01de591a 8015774: Add support for multiple code heaps
Support for segmentation of the code cache. Separate code heaps are created and used to store code of different types.

Reviewed-by: kvn, iveresov, roland, anoll, egahlin, sla
2014-09-17 08:00:07 +02:00
Boris Molodenkov
652c27e15d 8057165: [TESTBUG] Need a test to cover JDK-8054883
Reviewed-by: kvn, iveresov, iignatyev
2014-09-16 21:29:30 +04:00
Albert Noll
b2620f89c3 8058452: ciInstanceKlass::non_static_fields() can be removed
CiInstanceKlass::non_static_fields() and all associated data structures can be removed since they are unused.

Reviewed-by: kvn, thartmann
2014-09-16 14:39:11 +02:00
Magnus Ihse Bursie
2678b42e96 8056999: Make hotspot builds less verbose on default log level
Reviewed-by: dholmes, erikj
2014-09-16 12:13:13 +02:00
Stefan Karlsson
970f6603c1 Merge 2014-09-16 09:31:42 +00:00
Thomas Schatzl
adf66602a0 8052172: Evacuation failure handling in G1 does not evacuate all objects if -XX:-G1DeferredRSUpdate is set
Remove -XX:-G1DeferredRSUpdate functionality as it is racy. During evacuation failure handling, threads where evacuation failure handling occurred may try to add remembered sets to regions which remembered sets are currently being scanned. The iterator to handle the remembered set scan does not support addition of entries during scan and so may skip valid references.

Reviewed-by: iveresov, brutisso, mgerdin
2014-09-16 10:28:15 +02:00
Stefan Karlsson
cdc16edaa5 8058475: TestCMSClassUnloadingEnabledHWM.java fails with '.*CMS Initial Mark.*' missing from stdout/stderr
Reviewed-by: mgerdin, tschatzl, brutisso
2014-09-16 10:13:45 +02: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
Nils Eliasson
2dcb0e33bb 8058461: serviceability/dcmd/CodelistTest.java and serviceability/dcmd/CompilerQueueTest.java SIGSEGV
Print only alive nmethods and add lock to print compile queue

Reviewed-by: kvn, anoll
2014-09-15 17:12:01 +02:00
Tobias Hartmann
dd6285d984 8048721: -XX:+PrintCompilation prints negative bci for non entrant OSR methods
Removed 'InvalidOSREntryBci' and checking nmethod::_state instead to determine if an osr method is non-entrant.

Reviewed-by: kvn, vlivanov, drchase
2014-09-15 08:08:22 +02:00
Ioi Lam
9fe35127c2 Merge 2014-09-12 14:05:28 -07:00
Alejandro Murillo
f082ff287e Merge 2014-09-12 04:22:19 -07:00
Niclas Adlertz
d348978bc1 Merge 2014-09-12 09:17:58 +02: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
John Coomes
fada700e21 8058235: identify GCs initiated to update allocation context stats
Reviewed-by: mikael, sjohanss
2014-09-11 17:13:30 -07:00
Lana Steuck
890a1517be Merge 2014-09-11 14:28:30 -07:00
Bradford Wetmore
57a91cf7bd 8058180: .hgignore should be updated with webrev in all repos
Reviewed-by: jrose, katleman, jjg
2014-09-11 12:18:02 -07:00
David Katleman
b45a0b373e Added tag jdk9-b30 for changeset 9628dff9b9a1 2014-09-11 09:08:47 -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
Tom Rodriguez
98b5d14523 8054174: minor buglet in computation of end of pc descs in libjvm_db.c
Fixed scopes_pcs_end calculation

Reviewed-by: sspitsyn, sla
2014-09-11 03:13:29 -07:00
Nils Eliasson
1ba87d2a18 Merge 2014-09-11 08:01:15 +00:00
Igor Veresov
6dc6f53f6a 8058184: Move _highest_comp_level and _highest_osr_comp_level from MethodData to MethodCounters
Tiered policy requires highest compilation levels always available

Reviewed-by: kvn, vlivanov
2014-09-11 00:04:50 -07:00
Lana Steuck
47add31262 Merge 2014-09-10 19:36:46 -07:00
Igor Veresov
7275456c3a 8058092: Test vm/mlvm/meth/stress/compiler/deoptimize. Assert in src/share/vm/classfile/systemDictionary.cpp: MH intrinsic invariant
Throw exception if unable to compile an MH intrinsic

Reviewed-by: kvn
2014-09-10 19:08:17 -07:00
Daniel D. Daugherty
e7bc11f7b1 Merge 2014-09-10 17:06:36 -07:00
Jon Masamitsu
25727c12c2 Merge 2014-09-10 23:14:13 +00:00
Daniel D. Daugherty
5e63b8cfc4 8057109: manual cleanup of white space issues prior to Contended Locking reorder and cache line bucket
Reviewed-by: fparain, sspitsyn, coleenp
2014-09-10 11:52:16 -06:00
Daniel D. Daugherty
e1a36d62a0 8057107: cleanup indent white space issues prior to Contended Locking reorder and cache line bucket
Reviewed-by: fparain, sspitsyn, coleenp
2014-09-10 11:48:20 -06:00
Ivan Gerasimov
497f5c44a6 8057744: (process) Synchronize exiting of threads and process [win]
Reviewed-by: dholmes, dcubed, sla
2014-09-10 09:52:41 -07:00
Christian Tornqvist
3ad47cdbeb 8055719: Clean out support for old VC versions from ProjectCreator
Clean out support for old VC versions from ProjectCreator

Reviewed-by: sla, allwin
2014-09-10 07:06:37 -07:00
Nils Eliasson
6062c2db15 8054889: Compiler team's implementation task
Adding three new diagnostic commands for compiler

Reviewed-by: anoll, kvn, drchase
2014-09-10 13:27:33 +02:00
David Holmes
eb8950df45 8056183: os::is_MP() always reports true when NMT is enabled
Reviewed-by: shade, coleenp, bdelsart
2014-09-10 00:44:16 -04:00
Roland Westrelin
2d59d215e2 8057758: Tests run TypeProfileLevel=222 crash with guarantee(0) failed: must find derived/base pair
Use TypeAryPtr::INT type with offset 0 in inline_multiplyToLen().

Reviewed-by: kvn, iveresov
2014-09-09 15:47:18 -07:00
Yumin Qi
425a00d039 Merge 2014-09-09 18:56:24 +00: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
Niclas Adlertz
1b124f9f48 Merge 2014-09-09 16:14:40 +02:00
Yumin Qi
9b0811172b 8056930: Output host info under some condition for core dump
Output host name after java crashed for debug version.

Reviewed-by: dholmes, ccheung
2014-09-08 22:48:09 -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
Mikael Gerdin
7bf45791e8 8057722: G1: Code root hashtable updated incorrectly when evacuation failed
Reviewed-by: brutisso, jwilhelm
2014-09-08 17:47:43 +02:00
Stefan Karlsson
1e20d1e9f1 8057918: Update out-dated ignore tags in GC jtreg tests
Reviewed-by: ehelin, tschatzl
2014-09-09 13:55:38 +02:00
Bengt Rutisson
c9d4b7a93c 8057910: G1: BOT verification should not pass top
Reviewed-by: stefank, tschatzl
2014-09-09 14:27:10 +02:00
Severin Gehwolf
4d6624b430 8057696: java -version triggers assertion for slowdebug zero builds
The change as introduced with JDK-8003426 removed some zero code in cppInterpreter_zero.cpp which called generate_normal_entry() in that same file with a value of synchronized == false unconditionally. However, since the new code calls generate_normal_entry() with either true or false, the assertion in this method is no longer valid.

Reviewed-by: coleenp
2014-09-08 11:14:41 -04:00
Volker Simonis
cf7dd2e6e4 8057780: Fix ppc build after "8050147: StoreLoad barrier interferes with stack usages
Reviewed-by: kvn, shade
2014-09-08 16:05:48 +02:00
Igor Veresov
b91254ea6a 8057750: CTW should not make MH intrinsics not entrant
Do not make MH intrinsics not entrant in CTW

Reviewed-by: kvn, vlivanov
2014-09-08 11:45:48 -07:00
Stefan Johansson
174af2ea34 8057752: WhiteBox extension support for testing
Refactored parts of whitebox.cpp to enable registration of whitebox methods defined outside this file.

Reviewed-by: mikael, ctornqvi, jmasa
2014-09-08 15:24:10 +02:00
John Coomes
d50a563314 8057827: notify an obj when allocation context stats are available
Reviewed-by: mikael, jmasa, tschatzl
2014-09-10 16:06:53 -07:00
John Coomes
fd0e5093ca 8057824: methods to copy allocation context statistics
Reviewed-by: mikael, jmasa, tschatzl
2014-09-10 13:01:13 -07:00
John Coomes
40155ae18d 8057818: collect allocation context statistics at gc pauses
Reviewed-by: mikael, jmasa
2014-09-10 13:01:13 -07:00
Stefan Johansson
0856ec5961 8057710: Refactor G1 heap region default sizes
Refactored the defines to instead be static const in a HeapRegionBounds class.

Reviewed-by: mgerdin, tschatzl
2014-09-09 04:48:41 +02:00
Stefan Johansson
3e6d46d28b 8057658: Enable G1 FullGC extensions
Refactored the G1 FullGC code to enable it to be extended.

Reviewed-by: mgerdin, brutisso
2014-09-09 00:05:25 +02:00
Bengt Rutisson
ff1498ba6b 8025564: gc/memory/UniThread/Linear1 times out during heap verification
Reviewed-by: stefank, tschatzl
2014-09-08 10:41:06 +02:00
Igor Veresov
e285f3eadc 8056154: JVM crash with EXCEPTION_ACCESS_VIOLATION when there are many threads running
Don't make compiled MH intrinsics not entrant when redefining classes

Reviewed-by: kvn, vlivanov
2014-09-05 14:39:45 -07:00
John Coomes
938374d5f9 8057623: add an extension class for argument handling
Reviewed-by: brutisso, mgerdin, tschatzl
2014-09-05 12:36:37 -07:00
Igor Veresov
5db7b3a4e1 8056124: Hotspot should use PICL interface to get cacheline size on SPARC
Using libpicl to get L1 data and L2 cache line sizes

Reviewed-by: kvn, roland, morris
2014-09-05 11:23:47 -07:00
Zoltan Majo
35bca0df61 8053886: assert(false) failed: Should not allocate with exception pending
Failure caused by allocating method counters. Changed the way counters are allocated (use get_method_counters() instead of build_method_counters())

Reviewed-by: kvn, thartmann, anoll
2014-09-05 16:07:22 +02:00
Stefan Johansson
f8137659f5 8057536: Refactor G1 to allow context specific allocations
Splitting out a g1 allocator class to simply specialized allocators which can associate each allocation with a given context.

Reviewed-by: mgerdin, brutisso
2014-09-05 09:49:19 +02:00
Vladimir Kozlov
f8eeba1ce4 8057643: Unable to build --with-debug-level=optimized on OSX
Added missing Hotspot make targets for 'optimized' build.

Reviewed-by: iveresov
2014-09-04 23:49:17 -07:00
Vladimir Kozlov
98f413fa1f Merge 2014-09-04 22:59:17 -07:00
John Coomes
100e58569c 8057531: refactor gc argument processing code slightly
Reviewed-by: mgerdin, tschatzl, jmasa
2014-09-04 16:53:27 -07:00
Lana Steuck
100e3aba7b Merge 2014-09-04 14:45:08 -07:00
Jon Masamitsu
f93cc0e163 Merge 2014-09-04 13:45:39 -07:00
David Katleman
5f855a8d15 Added tag jdk9-b29 for changeset dc0034c79fa4 2014-09-04 13:26:26 -07:00
Jon Masamitsu
2d8379afd4 Merge 2014-09-04 12:25:05 -07:00
John Coomes
7fcafaafcf 8054970: gc src file exclusion should exclude alternative sources
Reviewed-by: ehelin, stefank
2014-09-04 09:37:41 -07:00
Staffan Larsen
fed95a6860 8057535: add a thread extension class
Reviewed-by: mgerdin, bdelsart, jcoomes
2014-09-04 11:21:08 +02:00
Jesper Wilhelmsson
bc3ffaa29f Merge 2014-09-22 16:22:21 +02:00
Bengt Rutisson
f42eb3b19e Merge 2014-09-19 12:11:08 +00:00
Jesper Wilhelmsson
c1ed80922e Merge 2014-09-19 11:51:06 +02:00
Joseph Provino
bc07a22d12 8058534: Remove HeapRegion::_orig_end
Also reviewed by kim.barrett@oracle.com

Reviewed-by: tonyp, brutisso, tschatzl
2014-09-19 09:23:55 +02:00
Marcus Larsson
59bc281604 8035729: Code using assert(is_oop_or_null) needs better error messages
Modified error messages to include the oops

Reviewed-by: stefank, tschatzl
2014-09-18 11:04:00 +02:00
Marcus Larsson
d90a333e5b 8053998: Hot card cache flush chunk size too coarse grained
Changed the chunk size to a smaller fixed number.

Reviewed-by: tschatzl, mgerdin
2014-09-18 11:27:59 +02:00
Marcus Larsson
f6ab247c45 8055091: CollectedHeap::_reserved usage should be cleaned up
Added an initialization function for _reserved.

Reviewed-by: mgerdin, jwilhelm
2014-09-18 12:45:45 +02:00
Jesper Wilhelmsson
366ea37781 8056056: Remove unnecessary inclusion of HS_ALT_MAKE from solaris Makefile
Remove unnecessary inclusion of HS_ALT_MAKE from solaris Makefile

Reviewed-by: erikj, dholmes
2014-09-05 00:28:43 +02:00
Aleksey Shipilev
13329b5040 8050147: StoreLoad barrier interferes with stack usages
Reviewed-by: jrose, kvn, drchase
2014-09-04 13:11:25 +04:00
Christian Tornqvist
c81071a7c7 8057147: [TESTBUG] Platform.isDebugBuild() doesn't work on all build types
Check java.version for debug string as well

Reviewed-by: gtriantafill, hseigel, sla, acorn, dcubed
2014-09-03 17:30:23 -04:00
Thomas Schatzl
a1b464a721 Merge 2014-09-03 15:07:47 +00:00
Thomas Schatzl
d840f222df 8057143: Incomplete renaming of variables containing "hrs" to "hrm" related to HeapRegionSeq
Fixup the remaining variable names.

Reviewed-by: tonyp, jwilhelm
2014-09-03 17:01:57 +02:00
Volker Simonis
0bfeda937a 8057129: Fix AIX build after the Extend CompileCommand=option change 8055286
Reviewed-by: kvn
2014-09-03 14:39:13 +02:00
Stefan Karlsson
635e35d00a 8057037: Verification in ClassLoaderData::is_alive is too slow
Reviewed-by: brutisso, mgerdin, tschatzl
2014-09-03 12:45:14 +02:00
Ioi Lam
04e110cf2c 8056971: Minor class loading clean-up
Misplacement of #if INCLUE_CDS, typos, unnecessary C string duplication

Reviewed-by: dholmes, ccheung
2014-09-02 09:51:24 -07:00
Lana Steuck
09fae2e8ed Merge 2014-08-29 11:57:22 -07:00
Serguei Spitsyn
f1aa6a6d0c Merge 2014-08-29 11:35:03 -07:00
David Katleman
efd6ea1172 Added tag jdk9-b28 for changeset fabe6090d37a 2014-08-29 11:30:41 -07:00
Jon Masamitsu
2ad3d66d79 Merge 2014-08-29 08:14:19 -07:00
Jon Masamitsu
2bc6e7b543 Merge 2014-08-29 08:07:13 -07:00
Staffan Larsen
e7b8addd7f 8055838: Hotspot does not compile with clang 6.0 (OS X Yosemite)
Reviewed-by: lfoltan, kvn
2014-08-29 13:34:16 +02:00
Mikael Gerdin
10379e7e82 8048268: G1 Code Root Migration performs poorly
Replace G1CodeRootSet with a Hashtable based implementation, merge Code Root Migration phase into Code Root Scanning

Reviewed-by: jmasa, brutisso, tschatzl
2014-08-29 13:12:21 +02:00
Mikael Gerdin
6fc8764c65 8056084: Refactor Hashtable to allow implementations without rehashing support
Reviewed-by: gziemski, jmasa, brutisso, coleenp, tschatzl
2014-08-29 13:08:01 +02:00
Lana Steuck
85effaaf95 Merge 2014-08-28 14:53:43 -07:00
Jon Masamitsu
a85209f8a5 Merge 2014-08-28 11:25:09 -07:00
Jon Masamitsu
0d0607c64c Merge 2014-08-28 17:45:58 +00:00
Lois Foltan
a2acb924db Merge 2014-08-28 13:01:44 -04:00
Rickard Bäckman
2b5065f487 Merge 2014-08-28 18:31:05 +02:00
Jon Masamitsu
97fe3fc7ea Merge 2014-08-28 08:56:52 -07:00
Lois Foltan
960d0fc613 8054355: ENFORCE_CC_COMPILER_REV needs to be updated to Solaris C++ 12u3 for JDK 9
Update of C++ validiation check for JDK 9 on Solaris.

Reviewed-by: coleenp, dcubed, kvn
2014-08-28 11:56:06 -04:00
Thomas Schatzl
f12e5848bd Merge 2014-08-28 15:55:05 +00:00
Coleen Phillimore
df46960ed0 Merge 2014-08-28 15:44:02 +00:00
Coleen Phillimore
49d21c007b Merge 2014-08-28 11:30:11 -04:00
Coleen Phillimore
73d759e533 8049105: Move array component mirror to instance of java/lang/Class (hotspot part 2)
This removes component mirrors from arrayKlass metadata and the C2 intrinsic for them.

Reviewed-by: kvn, twisti, mgerdin
2014-08-28 11:29:09 -04:00
Thomas Schatzl
146c4f6999 Merge 2014-08-28 17:06:29 +02:00
Thomas Schatzl
344be39551 8054808: Bitmap verification sometimes fails after Full GC aborts concurrent mark
The verification code that checked whether no bitmap mark had been found re-read HeapRegion::end() after the check on the bitmap. Concurrent humongous object allocation could have changed HeapRegion::end() in the meantime. Fix this by using the actual end of the region instead of HeapRegion::end() for comparison.

Reviewed-by: brutisso, jmasa
2014-08-28 17:05:41 +02:00
Dmitry Samersoff
4d88604ce5 8029172: warnings from b117 for hotspot.agent.src.os.linux: JNI exception pending
Added missed exception checks

Reviewed-by: chegar, sla
2014-08-28 07:46:49 -07:00
Dmitry Fazunenko
6f13f6587d 8050464: G1 string deduplication tests hang/timeout and leave running processes consuming all resources
Reviewed-by: jmasa
2014-08-28 18:38:31 +04:00
Dmitry Samersoff
ca7943ac3b 8031583: warnings from b03 for hotspot/agent/src/os/solaris/proc: JNI exception pending
Added missed exception checks

Reviewed-by: sla, sspitsyn
2014-08-28 06:32:16 -07:00
Erik Joelsson
152cf7d4ba 8056053: Disable HOTSPOT_BUILD_JOBS when building with configure
Reviewed-by: dholmes, ihse, dcubed
2014-08-28 11:59:04 +02:00
Ioi Lam
541640ed22 Merge 2014-09-05 15:53:02 -07:00
Coleen Phillimore
731bbae8fa 8057570: RedefineClasses() tests fail assert(((Metadata*)obj)->is_valid()) failed: obj is valid
Revert two small changes from the previous-versions cleanup with marking code cache.

Reviewed-by: kvn, dcubed
2014-09-05 08:08:51 -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
Dmitry Samersoff
b4c90b963e 8035419: warning from b09 for hotspot.agent.src.os.win32.windbg.sawindbg.cpp: 'JNI exception pending'
Added missed exceptions checks

Reviewed-by: sla, sspitsyn
2014-09-04 04:17:32 -07:00
Staffan Larsen
f7f89e4a54 Merge 2014-09-04 08:48:53 +02: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
Fredrik Arvidsson
07001d0332 8056242: Add function to return structured information about loaded libraries
Return structured information about loaded libraries.

Reviewed-by: sla, dsamersoff
2014-09-03 14:43:49 +02:00
Bill Pittore
88eb5fb4d6 8046210: Missing memory barrier when reading init_lock
Reviewed-by: fparain, dcubed, mdoerr
2014-09-02 21:27:08 -04:00
Fredrik Arvidsson
cd4f6c4f45 8055755: Information about loaded dynamic libraries is wrong on MacOSX
The information about loaded dynamic libraries printed in hs_err_pid files or by running the jcmd VM.dynlib is partly incorrect. The address printed in front of the library file name is wrong.

Reviewed-by: sla, gziemski, gtriantafill
2014-08-28 10:28:21 +02:00
Volker Simonis
d9da8946df 8056175: Change "8048150: Allow easy configurations for large CDS archives" triggers conversion warning with older GCC
Cast the result of the conversion to uintx

Reviewed-by: ccheung, coleenp
2014-08-27 10:42:28 -07:00
Igor Ignatyev
600705ce90 8056072: add jprt_optimized targets
Reviewed-by: kvn, roland
2014-08-27 17:09:18 +04:00
Zoltan Majo
6ec9232c46 8051415: TypeTuple::make_domain() and TypeTuple::make_range() allocate too much memory
Change memory allocation in TypeTuple::make_domain() and TypeTuple::make_range() to not allocate memory for TypeFunc::Parms.

Reviewed-by: kvn, roland
2014-08-27 10:02:58 +02:00
Stefan Johansson
204425b78f 8028787: tmtools/jstat/gcoldcapacity/jstat_gcoldcapacity02 fails nsk.share.Failure: OGC < OGCMN in RT_Baseline
Passing the min and max size of the generation into the counter instead of using the space to estimate sizes.

Reviewed-by: stefank, tschatzl
2014-08-27 09:47:06 +02:00
Bengt Rutisson
663618a6a1 Merge 2014-08-27 09:22:22 +00:00
Bengt Rutisson
bbe82cb85b 8055816: Remove dead code in g1BlockOffsetTable
Reviewed-by: tschatzl, mgerdin
2014-08-27 10:51:08 +02:00
Thomas Schatzl
b89a9d94b5 8056043: Heap does not shrink within the heap after JDK-8038423
Enable shrinking within the heap by removing some code added for JDK-8054818. Enable the test case that checks that again too.

Reviewed-by: jwilhelm, jmasa
2014-08-27 08:59:05 +02: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
Thomas Schatzl
f789d43b8e 8055919: Remove dead code in G1 concurrent marking code
Reviewed-by: jmasa, jwilhelm
2014-08-26 14:15:50 +02:00
Leonid Mesnik
40b25893d0 8055953: [TESTBUG] Fix for 8055098 does not contain unit test
Add missing unit test.

Reviewed-by: tschatzl
2014-08-26 14:15:42 +02:00
Thomas Schatzl
9086b5795f 8054819: Rename HeapRegionSeq to HeapRegionManager
Reviewed-by: jwilhelm, jmasa
2014-08-26 09:36:53 +02:00
Tobias Hartmann
9ae2646f0f Merge 2014-08-25 07:44:58 +00:00
Stefan Karlsson
57cb2ef95e Merge 2014-08-25 07:35:36 +00:00
Calvin Cheung
e7456dcf86 8048150: Allow easy configurations for large CDS archives
Estimate the size of shared archive based on the number of classes in the classlist file

Reviewed-by: iklam, jiangli, minqi, dholmes
2014-08-25 00:13:36 -07:00
Stefan Karlsson
2bf343ea50 8055416: Several vm/gc/heap/summary "After GC" events emitted for the same GC ID
Reviewed-by: brutisso, ehelin
2014-08-25 09:10:13 +02:00
Bengt Rutisson
e1cf783e06 8055818: Remove PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC from g1BlockOffsetTable.cpp
Reviewed-by: stefank, mgerdin
2014-08-25 08:27:19 +02:00
Tobias Hartmann
a7727ecf87 8055751: TestAnonymousClassUnloading.java needs to copy additional WhiteBox class file to JTwork/scratch/sun/hotspot
Copy additional Whitebox class file to JTwork (required by JDK-8011397).

Reviewed-by: kvn
2014-08-25 07:08:53 +02:00
Tobias Hartmann
f7af76db24 8055657: Test compiler/classUnloading/methodUnloading/TestMethodUnloading.java does not work with non-default GC
Remove the '-XX:+UseParallelGC' parameter from the test because it is conflicting with other GC settings.

Reviewed-by: kvn
2014-08-25 07:04:09 +02: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
Vladimir Kozlov
f813683519 8055069: TSX and RTM should be deprecated more strongly until hardware is corrected
Require to specify UnlockExperimentalVMOptions flag together with UseRTMLocking flag on un-patched systems where CPUID allows it but is unsupported otherwise.

Reviewed-by: iveresov, fzhinkin
2014-08-22 12:03:49 -07:00
Alejandro Murillo
9d6f18c297 Merge 2014-08-22 09:55:49 -07:00
Jon Masamitsu
ab48e9abc1 Merge 2014-08-22 07:12:23 -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
Jesper Wilhelmsson
6b88c2205a 8055744: 8u-dev nightly solaris builds failed on 08/20
Fixed makefiles on solaris to allow build with extra symbols.

Reviewed-by: dcubed, erikj
2014-08-22 13:24:04 +02:00
Jesper Wilhelmsson
9390fa3b72 8055006: Store original value of Min/MaxHeapFreeRatio
Store the value set by the user and some makefile changes required to change the flags.

Reviewed-by: sla, mchung, bchristi, jmasa, dholmes, erikj
2014-09-16 16:02:32 +02:00
Jesper Wilhelmsson
66abbc4862 Merge 2014-09-18 18:19:44 +02:00
Jesper Wilhelmsson
71edbb2d96 8055702: Remove the generations array
The _gens array is removed and replaced by explicit _young_gen and _old_gen variables.

Reviewed-by: mgerdin, kbarrett
2014-08-22 10:10:08 +02:00
Jesper Wilhelmsson
d44b2b7565 Merge 2014-10-20 15:23:33 +02:00
Stefan Karlsson
d410f19961 8056240: Investigate increased GC remark time after class unloading changes in CRM Fuse
Reviewed-by: mgerdin, coleenp, bdelsart
2014-10-02 10:55:36 +02: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
Daniel D. Daugherty
4e9a6c7d35 Merge 2014-08-22 11:23:36 -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
Staffan Larsen
fe076d8a29 8055754: filemap.cpp does not compile with clang
Reviewed-by: kvn, iklam, coleenp
2014-08-22 08:13:38 +02:00
Ivan Gerasimov
8d7b009834 8055338: (process) Add instrumentation to help diagnose JDK-6573254
Reviewed-by: dcubed, ohair, iklam, dholmes, sspitsyn, sla
2014-08-21 16:32:36 -07:00
David Katleman
0b54c1ce49 Added tag jdk9-b27 for changeset e5904519ae05 2014-08-21 14:16:15 -07:00
Rickard Bäckman
4576a80675 Merge 2014-08-21 19:06:21 +00:00
Rickard Bäckman
a5b650be48 Merge 2014-08-21 20:24:41 +02:00
Jon Masamitsu
0b2abe6053 Merge 2014-08-21 10:51:31 -07:00
Leonid Mesnik
6715fc0bed 8055098: WB API should be extended to provide information about size and age of object
Extend the WhiteBox API to provide information about the size and age of objects. Further add a mechanism to trigger a young GC.

Reviewed-by: tschatzl, sjohanss
2014-08-21 16:44:41 +02:00
Christian Tornqvist
6515584f58 Merge 2014-08-21 01:43:27 +00:00
Christian Tornqvist
6f75087c92 8027480: Build Windows x64 fastdebug builds using /homeparams
Windows x64 fastdebug builds now uses the /homeparams compiler flag

Reviewed-by: dcubed, zgu, lfoltan
2014-08-20 14:59:33 -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
27483c4d9b Merge 2014-08-20 21:37:50 +00:00
Zhengyu Gu
181ebe98ef 8055236: Deadlock during NMT2 shutdown on Windows
Removed MemTracker::shutdown() call to avoid deadlock

Reviewed-by: minqi, ctornqvi
2014-08-20 15:58:45 -04:00
Thomas Schatzl
ad89797fbd 8055635: Missing include in g1RegionToSpaceMapper.hpp results in unresolved symbol of fastdebug build without precompiled headers
Reviewed-by: mgerdin, ehelin
2014-08-20 15:04:39 +02:00
Zhengyu Gu
b7b6529192 Merge 2014-08-20 08:50:10 -04:00
Zhengyu Gu
92679c0226 8054546: NMT2 leaks memory
Fixed memory leak in NMT by baselining memory in c heap instead of an arena.

Reviewed-by: coleenp, minqi
2014-08-20 08:41:15 -04:00
Thomas Schatzl
7fe4686591 8055525: Bigapp weblogic+medrec fails to startup after JDK-8038423
If large pages are enabled and configured in Linux, the VM always pre-commits the entire space. The VM fails verification of the commit of the initial heap because some internal data structure marked all memory pages of the heap as committed during initialization. This makes the code think that we attempted a double-commit during first allocation of the heap. Remove the initial marking of memory pages of the heap to committed.

Reviewed-by: mgerdin
2014-08-20 14:34:40 +02:00
Jon Masamitsu
e0d403f3b5 Merge 2014-08-19 13:44:55 -07:00
Alejandro Murillo
3c34abe0bd Merge 2014-08-19 11:17:44 -07:00
Roland Westrelin
400f0f7a8f 8055153: nsk/stress/jck60/jck60014 crashes on sparc
Missing control for LoadRange and LoadKlass nodes created during arraycopy node expansion

Reviewed-by: kvn, iveresov
2014-08-19 17:23:38 +02:00
Vladimir Kozlov
b37ae217fa 8055503: Rollback 8054164 changeset
Reviewed-by: iveresov
2014-08-19 16:20:18 -07:00
Vladimir Kozlov
a94ab9c7a1 Merge 2014-08-19 17:48:16 +00: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
Zhengyu Gu
511c342454 Merge 2014-08-19 08:42:46 -04:00
Zhengyu Gu
e672087234 8055007: NMT2: emptyStack missing in minimal build
Refactored emptyStack to a static member of NativeCallStack, which is accessible in minimal build.

Reviewed-by: coleenp, dholmes
2014-08-19 08:34:25 -04:00
Thomas Schatzl
100e51a339 8038423: G1: Decommit memory within heap
Allow G1 to decommit memory of arbitrary regions within the heap and their associated auxiliary data structures card table, BOT, hot card cache, and mark bitmaps.

Reviewed-by: mgerdin, brutisso, jwilhelm
2014-08-19 14:09:10 +02:00
Tobias Hartmann
8b9a829836 8048879: "unexpected yanked node" opto/postaloc.cpp:139
MemBarAcquireNode prevents deletion of dead LoadNNode. Added condition to 'has_special_unique_user' to trigger deletion.

Reviewed-by: kvn, iveresov
2014-08-19 07:36:11 +02:00
Poonam Bajaj
2617d54723 8044406: JVM crash with JDK8 (build 1.8.0-b132) with G1 GC
Fill the last card that has been allocated into with a dummy object

Reviewed-by: tschatzl, mgerdin
2014-08-18 19:30:24 -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
Thomas Schatzl
17e9dba8e9 Merge 2014-08-18 15:43:29 +00:00
Mikael Gerdin
3d15ed6007 Merge 2014-08-18 14:49:42 +00:00
Dmitry Fazunenko
b9b2141c2d 8055284: sanity/WhiteBox.java fails with NPE
Revert previous change, sanity/WhiteBox.java provides its own sun.hotspot.WhiteBox class.

Reviewed-by: ehelin, brutisso
2014-08-18 16:19:57 +02:00
Thomas Schatzl
2ee5ee89d4 8054818: Refactor HeapRegionSeq to manage heap region and auxiliary data
Let HeapRegionSeq manage the heap region and auxiliary data to decrease the amount of responsibilities of G1CollectedHeap, and encapsulate this work from other code.

Reviewed-by: jwilhelm, jmasa, mgerdin, brutisso
2014-08-18 16:10:44 +02:00
Thomas Schatzl
71775c28e2 8054362: gc/g1/TestEagerReclaimHumongousRegions2.java timeout
Give the test a time limit of approximately one minute so that it exits early on slow machines.

Reviewed-by: ehelin, dfazunen, brutisso
2014-08-18 15:41:57 +02:00
Stefan Karlsson
ab077e18a5 Merge 2014-08-18 12:25:36 +00:00
Stefan Karlsson
173377d355 8055275: Several gc/class_unloading/ tests fail due to missed +UnlockDiagnosticVMOptions flag
Reviewed-by: mgerdin, jwilhelm
2014-08-18 14:12:48 +02:00
Chris Hegarty
8d8b429bf4 Merge 2014-08-18 10:07:43 +01:00
Chris Hegarty
8b10a19669 8054834: Modular Source Code
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Reviewed-by: alanb, chegar, mchung
2014-08-17 15:56:04 +01:00
Coleen Phillimore
af8c2b9e6d Merge 2014-08-15 20:37:43 +00:00
Vladimir Kozlov
b86cece468 Merge 2014-08-15 12:27:50 -07:00
Severin Gehwolf
31f98c26fc 8055231: ZERO variant build is broken
Fix zero build.

Reviewed-by: coleenp
2014-08-15 15:25:24 -04:00
Serguei Spitsyn
bc23c9949e Merge 2014-08-15 11:25:55 -07:00
Alejandro Murillo
d85f054e11 Merge 2014-08-15 09:19:22 -07:00
Jon Masamitsu
9b3282f79b Merge 2014-08-15 09:06:17 -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
Zhengyu Gu
b91c7b5849 Merge 2014-08-14 17:25:14 +00:00
Zhengyu Gu
67c70b66e4 8054547: Re-enable warning for incompatible java launcher
Re-enabled warning as launcher change reached promotion build

Reviewed-by: hseigel, coleenp
2014-08-14 13:15:23 -04:00
Zhengyu Gu
7c306b0440 Merge 2014-08-14 13:13:15 +00:00
Zhengyu Gu
06a502d4a6 8054368: nsk/jdi/VirtualMachine/exit/exit002 crash with detail tracking on (NMT2)
Dynamic allocate _reserved_regions instead of static object to avoid racing during process exit

Reviewed-by: dholmes, coleenp
2014-08-14 09:02:51 -04:00
Tobias Hartmann
d50dfdb399 8054402: "klass->is_loader_alive(_is_alive)) failed: must be alive" for anonymous classes
Because anonymous classes are not in the system dictionary, we have to set 'unloading_occurred' based on 'CLDG::do_unloading()'. Added jtreg test.

Reviewed-by: kvn, coleenp
2014-08-14 09:15:39 +02:00
Vladimir Kozlov
89127c7360 8054164: solaris makefile
Reviewed-by: roland
2014-08-13 17:50:21 -07:00
Igor Veresov
8ed4cb5a02 8054883: Segmentation error while running program
Fix pattern matching of range check

Reviewed-by: kvn
2014-08-13 17:37:11 -07:00
Mike Duigou
99237ec5d9 8047952: Remove _FORTIFY_SOURCE from fastdebug and slowdebug builds
Reviewed-by: dholmes
2014-08-13 23:33:33 +00:00
Daniel D. Daugherty
8937a201e0 Merge 2014-08-13 13:29:45 -07:00
Vladimir Kozlov
ed5be50e9e 8054927: Missing MemNode::acquire ordering in some volatile Load nodes
Fixed memory ordering parameter and added missing barriers for volatile loads.

Reviewed-by: roland, iveresov
2014-08-13 13:05:04 -07:00
Roland Westrelin
2a78aba488 Merge 2014-08-13 09:53:18 +00:00
Zoltan Majo
abd8ce7135 8043913: remove legacy code in SPARC's VM_Version::platform_features
Kept only getisax(2) to determine platform features

Reviewed-by: kvn, roland
2014-08-13 10:44:50 +02:00
Harold Seigel
1fec07f4bf Merge 2014-08-12 21:16:05 -04: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
Harold Seigel
1436d4b821 8050485: super() in a try block in a ctor causes VerifyError
Parse catch clause paths to ensure they end in throws

Reviewed-by: dlong, acorn, kamg, ctornqvi, lfoltan
2014-08-12 20:29:25 -04:00
Ioi Lam
bbe6f51f81 8046070: Class Data Sharing clean up and refactoring
Cleaned up CDS to be more configurable, maintainable and extensible

Reviewed-by: dholmes, coleenp, acorn, mchung
2014-08-12 17:29:00 -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
Alejandro Murillo
d7991d3827 Merge 2014-08-12 14:04:21 -07:00
Zhengyu Gu
097085961f 8054938: [TESTBUG] Wrong WhiteBox.java was pushed by JDK-8044140
Reserved WhiteBox.java pushed by JDK-8044140

Reviewed-by: ccheung, hseigel
2014-08-12 12:39:02 -07:00
Coleen Phillimore
cafb36661d 8003426: Remove UseFastAccessors and UseFastEmptyMethods except for zero
These options have been long disabled in Xmixed mode because they prevent these small methods from being inlined and are subject to bit rot, and we don't need more macro assembler code to maintain and change if the constant pool cache format changes.

Reviewed-by: simonis, kvn
2014-08-12 10:48:55 -04:00
Zhengyu Gu
8a690a1250 6424123: JVM crashes on failed 'strdup' call
Calling os::malloc()/os::strdup() and new os::strdup_check_oom() instead of ::malloc()/::strdup() for native memory tracking purpose

Reviewed-by: coleenp, ctornqvi, kvn
2014-08-11 10:18:09 -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
Zhengyu Gu
d595244c27 Merge 2014-08-11 07:20:39 -07:00
Roland Westrelin
fa334043fe 8054224: Recursive method that was compiled by C1 is unable to catch StackOverflowError
Do not update exception cache if exception is replaced when thrown

Reviewed-by: kvn, iveresov
2014-08-11 15:09:04 +02:00
Roland Westrelin
dc1afd4abe Merge 2014-08-11 13:02:44 +00:00
Roland Westrelin
a56ade07c7 7173584: Implement arraycopy as a macro node
Delay the conversion of arraycopy to stub calls to macro expansion

Reviewed-by: kvn, iveresov
2014-08-11 14:12:51 +02:00
Stefan Karlsson
2880629908 8054823: Add size_t as a valid VM flag type
Reviewed-by: kvn, vlivanov, sla
2014-08-11 14:03:06 +02: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
Dmitry Samersoff
2649b6be70 8049049: Unportable format string argument mismatch in hotspot/agent/src/os/solaris/proc/saproc.cpp
Cast arguments on printing

Reviewed-by: dholmes, sspitsyn, jbachorik
2014-08-11 04:37:19 -07:00
Tobias Hartmann
a67aa1e3df 8043284: Optimize signed integer comparison
Folding of BoolNode if input add/sub of CmpI overflows and we can prove that compared value is not in the two resulting ranges. Added test for CmpI and CmpU optimizations.

Reviewed-by: kvn, rbackman, roland
2014-08-11 13:01:37 +02:00
Lana Steuck
99d4b78fae Added tag jdk9-b26 for changeset 3a55fad9854a 2014-08-10 19:38:53 -07:00
Jon Masamitsu
d4ca2cc557 Merge 2014-08-08 16:24:16 -07:00
Alejandro Murillo
29ec2196ef Merge 2014-08-08 11:36:48 -07:00
Vladimir Kozlov
648272884a Merge 2014-08-08 10:35:05 -07:00
Jon Masamitsu
1cf05b831f Merge 2014-08-08 07:38:34 -07:00
Jon Masamitsu
30d4217ecd Merge 2014-08-07 20:17:37 -07:00
Morris Meyer
a6397cd368 8040920: Uninitialised memory in hotspot/src/share/vm/code/dependencies.cpp
Fixed parfait initialization issue.

Reviewed-by: kvn, twisti
2014-08-07 18:09:12 -07:00
Zhengyu Gu
f0cf82f571 8046598: Scalable Native memory tracking development
Enhance scalability of native memory tracking

Reviewed-by: coleenp, ctornqvi, gtriantafill
2014-08-07 12:18:58 -07:00
Marcus Larsson
ae0190f121 8051837: Remove temporary G1UseParallelRSetUpdating and G1UseParallelRSetScanning flags
Reviewed-by: stefank, tschatzl
2014-08-07 09:35:08 +02:00
Stefan Karlsson
ef47f5dc0e 8048269: Add flag to turn off class unloading after G1 concurrent mark
Added -XX:+/-ClassUnloadingWithConcurrentMark

Reviewed-by: jmasa, brutisso, mgerdin
2014-08-06 09:55:16 +02:00
Jon Masamitsu
e57b1279b2 8034056: assert(_heap_alignment >= _space_alignment) failed: heap_alignment less than space_alignment
Reviewed-by: tschatzl, sjohanss
2014-08-05 15:41:12 -07:00
Thomas Schatzl
94d0494b27 8054341: Remove some obsolete code in G1CollectedHeap class
Remove dead code.

Reviewed-by: stefank, brutisso
2014-08-07 22:28:53 +02:00
Thomas Schatzl
24bee82e67 8052170: G1 asserts at collection exit with -XX:-G1DeferredRSUpdate
Do not try to verify timing measures for the redirty logged cards phase when it is not executed.

Reviewed-by: brutisso, jmasa
2014-08-07 22:28:16 +02:00
Vladimir Kozlov
6c237d9d0f 8049542: C2: assert(size_in_words <= (julong)max_jint) failed: no overflow
Added juint cast to avoid gcc problem we have on one of our platforms.

Reviewed-by: dholmes, roland
2014-08-05 14:44:18 -07:00
Morris Meyer
b3f78699f7 8054530: C2: assert(res == old_res) failed: Inconsistency between old and new
Fixed signedness problem with assertion.

Reviewed-by: kvn
2014-08-13 13:00:53 -07:00
Igor Veresov
c86e8f5a2c 8059200: Promoted JDK9 b31 for Solaris-amd64 fails (Error: dl failure on line 744, no picl library) on Solaris 11.1
Manually load libpicl.so (used on SPARC only)

Reviewed-by: kvn
2014-10-25 21:02:29 -10:00
Dmitrij Pochepko
f1db529ce7 8043674: Update compiler/intrinsic/bmi tests to run it on all platforms
Reviewed-by: kvn, iignatyev, fzhinkin
2014-10-25 19:06:23 +04:00
Vladimir Kozlov
c620214d18 8041984: CompilerThread seems to occupy all CPU in a very rare situation
Add new timeout checks to EA.

Reviewed-by: iveresov, drchase
2014-10-24 10:28:19 -07:00
Sergei Kovalev
db334facfc 8028481: [TESTBUG] compiler/jsr292/CreatesInterfaceDotEqualsCallInfo.java should be in needs_nashorn test group
Reviewed-by: vlivanov, kvn
2014-10-24 09:17:32 -07:00
Vladimir Ivanov
916697af2c 8036748: assert(_base == Int) failed: Not an Int w/ -XX:+TraceIterativeGVN
Reviewed-by: kvn, roland
2014-10-24 09:14:41 -07:00
Vladimir Ivanov
83181efbeb 8058847: C2: EliminateAutoBox regression after 8042786
Reviewed-by: kvn, roland
2014-10-24 09:13:12 -07:00
Albert Noll
6520320d1a 8046809: vm/mlvm/meth/stress/compiler/deoptimize CodeCache is full
Use separate sweeper thread; enables more aggressive sweeping.

Reviewed-by: kvn, jrose
2014-10-24 14:25:46 +02:00
Tobias Hartmann
2597d484c6 8061486: [TESTBUG] compiler/whitebox/ tests fail : must be osr_compiled (reappeared in nightlies)
Call warmup code from OSR triggering method to make sure no non-OSR compilation is triggered in the loop.

Reviewed-by: kvn
2014-10-24 08:35:29 +02:00
Tobias Hartmann
7d0337349b 8060479: [TESTBUG] compiler/codecache/CheckSegmentedCodeCache.java test fails with product build
Added check for product build and compute minimum code cache size accordingly.

Reviewed-by: kvn, iignatyev
2014-10-24 08:27:39 +02:00
Tobias Hartmann
009e923e04 8061443: Whitebox get*VMFlag() methods fail with develop flags in product builds
Changed 'get*VMFlag' to return all flags. Added methods 'isLockedVMFlag' and 'isConstantVMFlag' and adapted tests.

Reviewed-by: kvn, dholmes, sla
2014-10-24 08:22:33 +02:00
Igor Veresov
7b42cc8306 8047383: SIGBUS in C2 compiled method weblogic.wsee.jaxws.framework.jaxrpc.EnvironmentFactory$SimulatedWsdlDefinitions.<init>
Do not rematerialize constant table loads in PhaseAggressiveCoalesce::insert_copies()

Reviewed-by: kvn
2014-10-23 09:41:59 -10:00
Vladimir Kozlov
da37592acb 8061563: Typo in test/compiler/exceptions/CatchInlineExceptions.java
Fix typo

Reviewed-by: iveresov
2014-10-21 12:37:48 -07:00
Vladimir Kozlov
44d1787a26 8059139: It should be possible to explicitly disable usage of TZCNT instr w/ -XX:-UseBMI1Instructions
Reviewed-by: iveresov
2014-10-17 15:35:25 -07:00
Igor Veresov
4b046500b7 Merge 2014-10-17 10:09:43 -10:00
Tobias Hartmann
2a7c75d62f Merge 2014-10-17 08:27:46 +00:00
Tobias Hartmann
415f2cd075 8060454: [TESTBUG] Whitebox tests fail with -XX:CompileThreshold=100
Move the call to 'waitAndDeoptimize' from the warmup methods to the osr triggering methods to make sure that no non-osr compilation is in the queue after warmup.

Reviewed-by: kvn
2014-10-17 10:04:45 +02:00
Tobias Hartmann
bdd3c3df3a 8060196: 'CodeHeap is full' warning suggests to increase wrong code heap size
Fixed 'CodeHeap is full' warning to output the right CodeHeapSize flag.

Reviewed-by: kvn, anoll
2014-10-17 08:56:07 +02:00
Tobias Hartmann
a87b3d13df 8059846: InstanceKlass should use MutexLockerEx to acquire OsrList_lock
Replace explicit locking of OsrList_lock by a MutexLockerEx instantiation.

Reviewed-by: kvn, anoll, drchase, dholmes, dlong, coleenp
2014-10-16 12:57:04 +02:00
Dmitry Samersoff
40b035d141 Merge 2014-08-05 14:18:44 +00: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
Dmitry Samersoff
dd9932fa02 8025667: Warning from b62 for hotspot.agent.src.os.solaris.proc: use after free
Move free call few lines down

Reviewed-by: dholmes, sspitsyn
2014-08-05 06:11:35 -07:00
Lana Steuck
9243ae2029 Merge 2014-08-04 15:34:37 -07:00
Stefan Karlsson
bdeaedbd38 8051883: TEST.groups references missing test: gc/class_unloading/TestCMSClassUnloadingDisabledHWM.java
Reviewed-by: brutisso, tschatzl, ehelin, jmasa, dfazunen
2014-08-04 15:04:45 +02:00
Jon Masamitsu
47e31eaa7a Merge 2014-08-03 03:48:24 +00:00
Harold Seigel
f588cd1325 8051012: Regression in verifier for <init> method call from inside of a branch
Fix stackmap matching for branches.

Reviewed-by: coleenp, lfoltan, acorn
2014-08-02 16:28:59 -04:00
Roland Westrelin
355f6eb4ae 8046698: assert(false) failed: only Initialize or AddP expected macro.cpp:943
PhiNode inserted between AllocateNode and Initialization node confuses allocation elimination

Reviewed-by: kvn
2014-08-02 07:06:08 +02:00
Igor Ignatyev
eaabce8778 8054410: compiler/7068051/Test7068051.java fails with FileNotFoundException: f3oo.jar
Reviewed-by: kvn
2014-08-06 21:21:25 +04:00
Tobias Hartmann
1213845b36 8029443: 'assert(klass->is_loader_alive(_is_alive)) failed: must be alive' during VM_CollectForMetadataAllocation
Added missing metadata relocation to 'loadConP_no_oop_cheap' on Sparc if the pointer is referring to a Klass. Added jtreg test.

Reviewed-by: kvn, roland
2014-08-06 08:47:40 +02:00
Vladimir Kozlov
7764490363 8052081: Optimize generated by C2 code for Intel's Atom processor
Allow to execute vectorization and crc32 optimization on Atom. Enable UseFPUForSpilling by default on x86.

Reviewed-by: roland
2014-08-05 15:02:10 -07:00
Morris Meyer
97512f58ec 8040921: Uninitialised memory in hotspot/src/share/vm/c1/c1_LinearScan.cpp
Fixed parfait initialization issue.

Reviewed-by: kvn, twisti
2014-08-05 08:19:03 -07:00
Tobias Hartmann
70a55eac34 8054033: Remove unused references to Compile*
Removed unused references to Compile* missed by JDK-8034812.

Reviewed-by: kvn, roland
2014-08-05 09:58:52 +02:00
Albert Noll
6292295da2 Merge 2014-08-05 07:37:10 +00:00
Zoltan Majo
023c23b23c 8054013: run hotspot JTREG compiler tests only on fastdebug platforms and also on macosx
Modify hotspot/make/jprt.properties and make/jprt.properties on the top level to add/remove the relevant platforms.

Reviewed-by: kvn, roland
2014-08-05 09:07:16 +02:00
Igor Ignatyev
0521e7ed8f 8051484: Test compiler/6932496/Test6932496.java failed to compile after JDK-8011044: 1.5 is no longer supported
Reviewed-by: kvn, roland
2014-08-03 12:04:36 +04:00
Igor Ignatyev
ebcdde4222 8051896: jtreg tests don't use $TESTJAVAOPTS
Reviewed-by: kvn, ctornqvi
2014-08-03 12:04:17 +04:00
Roland Westrelin
a2d18a0238 8057038: Speculative traps not robust when compilation and class unloading are concurrent
Speculative traps can be removed from MDO while being copied by compiler

Reviewed-by: kvn, iveresov
2014-08-02 06:15:23 +02:00
Filipp Zhinkin
dc2c903e43 8055904: Develop tests for new command-line options related to SHA intrinsics
Reviewed-by: kvn, iignatyev
2014-09-03 15:29:57 +04:00
Filipp Zhinkin
8381452775 8055903: Develop sanity tests on SPARC's SHA instructions support
Reviewed-by: kvn, iignatyev
2014-09-03 15:26:06 +04:00
Filipp Zhinkin
9f825ac4cb 8056091: Move compiler/intrinsics/mathexact/sanity/Verifier to compiler/testlibrary and extend its functionality
Reviewed-by: kvn, iignatyev
2014-09-03 15:24:26 +04:00
Roland Westrelin
9369af8c06 8055946: assert(result == NULL || result->is_oop()) failed: must be oop
Caller of popped frame doesn't have valid result during deoptimization

Reviewed-by: kvn
2014-08-27 17:37:18 +02:00
Roland Westrelin
fa27000f3c 8055910: closed/java/util/Collections/CheckedCollections.java failed with ClassCastException not thrown
Missing subtype check for Arrays.copyOf intrinsic

Reviewed-by: kvn, iveresov
2014-08-29 16:32:29 +02:00
Vladimir Kozlov
b9e949183d 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
Add new C2 intrinsic for BigInteger::multiplyToLen() on x86 in 64-bit VM.

Reviewed-by: roland
2014-09-02 12:48:45 -07:00
Vladimir Kozlov
8b93fb04cd 8056964: JDK-8055286 changes are incomplete
Added ccstr and ccstrlist types to compilerOracle 'option' command

Reviewed-by: roland
2014-09-02 10:26:48 -07:00
David Chase
4c9f643e10 8054292: code comments leak in fastdebug builds
Added deallocation to destructor; hardened interface against misuse

Reviewed-by: kvn
2014-08-29 19:45:49 -04:00
Tobias Hartmann
3eb44b3955 Merge 2014-08-29 13:46:50 +00:00
Zoltan Majo
fbab0fe16e 8055286: Extend CompileCommand=option to handle numeric parameters
Changed CompileCommand=option to handle "extended" parameters: Klass::method,type,flag,value. Types supported are bool, intx, and uintx.

Reviewed-by: kvn, roland
2014-08-29 15:32:16 +02:00
Tobias Hartmann
79be04020a 8056067: NodeHash debug variables are available in product build
Make NodeHash debug variables only available in debug/optimized build.

Reviewed-by: kvn, roland
2014-08-29 14:46:35 +02:00
Igor Ignatyev
da8d847087 8056223: typo in export_optimized_jdk
Reviewed-by: kvn
2014-08-28 23:30:13 +04:00
Serguei Spitsyn
7b1571089e Merge 2014-08-01 19:03:26 -07:00
Serguei Spitsyn
3dec185794 7187999: dtrace jstack action is broken
Separate jhelper.d and hotspot provider (other USDT probes)

Reviewed-by: dholmes, dsamersoff
2014-08-01 16:33:46 -07:00
Roland Westrelin
2588547f41 Merge 2014-08-01 15:57:00 -07:00
Jon Masamitsu
5f2c33e42b 8031323: Optionally align objects copied to survivor spaces
Reviewed-by: brutisso, tschatzl
2014-08-01 15:40:12 -07:00
Tim Bell
a33df03f53 Added tag jdk9-b25 for changeset 938af06a9f70 2014-08-01 14:09:09 -07:00
Jon Masamitsu
e9553ff4bf Merge 2014-07-31 16:39:57 -07: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
Roland Westrelin
e546e2a060 8054054: 8040121 is broken
C++ code pattern from 8040121 is incorrect

Reviewed-by: kvn
2014-07-31 19:59:36 +02:00
Thomas Schatzl
a959c0971e 8051973: Eager reclaim leaves marks of marked but reclaimed objects on the next bitmap
Eager reclaim also needs to clear marks of eagerly reclaimed regions if they have already been marked during concurrent mark.

Reviewed-by: jmasa
2014-07-31 09:23:24 +02:00
Tobias Hartmann
e3073f2e53 8053915: bigapps assert failure in C2: modified node is not on IGVN._worklist
Add modified node to the IGVN worklist in 'PhaseIdealLoop::do_range_check'.

Reviewed-by: kvn, roland
2014-07-31 08:39:47 +02:00
Tobias Hartmann
efc7daaf82 8054081: Crashes with assert "modified node is not on IGVN._worklist"
Modified safepoint nodes are not added to the IGVN worklist by 'PhaseMacroExpand::scalar_replacement()'

Reviewed-by: kvn, roland
2014-08-05 08:25:10 +02:00
Coleen Phillimore
d230f0b4fd 8051398: jvmti tests fieldacc002, fieldmod002 fail in nightly with errors: (watch#0) wrong location
Didn't handle NULL bcp for native methods

Reviewed-by: dcubed, sspitsyn
2014-07-31 00:50:55 +00:00
Serguei Spitsyn
73cc0f6b76 Merge 2014-07-30 15:14:49 -07:00
Lana Steuck
8678a25ccf Merge 2014-07-30 11:49:41 -07:00
Vladimir Kozlov
7a9fc5ff21 Merge 2014-07-29 21:28:09 +00:00
Vladimir Kozlov
4e83db432d 8049252: VerifyStack logic in Deoptimization::unpack_frames does not expect to see invoke bc at the top frame during normal deoptimization
Add missing check for reexecute flag to VerifyStack code.

Reviewed-by: roland
2014-07-29 13:40:58 -07:00
Tobias Hartmann
c36b77bbfd 8049043: Load variable through a pointer of an incompatible type in hotspot/src/share/vm/runtime/sharedRuntimeMath.hpp
Fixed parfait warnings caused by __HI and __LO macros in sharedRuntimeMath.hpp by using a union.

Reviewed-by: kvn, drchase
2014-07-29 13:56:29 +02:00
Tobias Hartmann
d2a5b70cdf 8040121: Load variable through a pointer of an incompatible type in src/hotspot/src/share/vm: opto/output.cpp, runtime/sharedRuntimeTrans.cpp, utilities/globalDefinitions_visCPP.hpp
Fixed parfait warnings in globalDefinitions files by using a union for casts.

Reviewed-by: kvn
2014-07-29 13:54:16 +02:00
Martin Doerr
071c3a3924 8050973: CMS/G1 GC: add missing Resource and Handle mark
Add Resource/HandleMark in the work() method of some AbstractGangTask to reclaim these resources earlier.

Reviewed-by: tschatzl, goetz
2014-07-29 10:26:09 +02:00
Filipp Zhinkin
e8d1955b5e 8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
Call rtm_deopt() only if there were no compilation bailouts before.

Reviewed-by: kvn
2014-07-28 15:06:38 -07:00
Dmitry Samersoff
037f9fdccf 8049046: Deprecated Function in hotspot/src/os/solaris/vm/attachListener_solaris.cpp
Replace door_cred with door_ucred call

Reviewed-by: dholmes, sspitsyn
2014-07-28 07:31:17 -07:00
Tim Bell
5550d93edd Added tag jdk9-b24 for changeset d6c0b1381379 2014-07-25 15:38:08 -07:00
Jon Masamitsu
7774fe7ed1 Merge 2014-07-24 15:06:36 -07:00
Alejandro Murillo
2c30bd9104 Merge 2014-07-24 13:18:15 -07:00
Rickard Bäckman
84271f1c96 Merge 2014-07-24 14:38:26 +02:00
Jon Masamitsu
e242f23105 Merge 2014-07-23 14:06:28 -07:00
Thomas Schatzl
f161bd6d16 8027959: Early reclamation of large objects in G1
Try to reclaim humongous objects at every young collection after doing a conservative estimate of its liveness.

Reviewed-by: brutisso, mgerdin
2014-07-23 09:03:32 +02:00
Lana Steuck
14cfe75c89 Merge 2014-07-22 11:56:22 -07:00
Poonam Bajaj
5d40917272 8049881: jstack not working on core files
Access _trace_id field of Klass in try-catch block

Reviewed-by: dholmes, dsamersoff, mgronlun
2014-07-22 06:34:42 -07:00