370 Commits

Author SHA1 Message Date
Sangheon Kim
62d7317f86 8225478: Make G1CMRootRegions independent of HeapRegions
Remove dependency of HeapRegion from G1CMRootRegions class

Reviewed-by: tschatzl, kbarrett
2019-06-12 10:34:29 +02:00
Coleen Phillimore
7235c5b0e2 8224151: Test vmTestbase/nsk/sysdict/vm/stress/chain/chain007/chain007.java might hang with release binaries
Fix deadlock on ClassLoaderDataGraph_lock and g1 clear_claimed_marks.

Reviewed-by: tschatzl, lfoltan, eosterlund
2019-06-06 15:09:17 -04:00
Kishor Kharbas
f0f679de2a 8224247: AllocateOldGenAt fires assertion failure
Split the heap_reserved_size_bytes() into two methods - one for use during heap initialization and other for at later stages.

Reviewed-by: sangheki, tschatzl
2019-06-03 11:04:24 -07:00
Roland Westrelin
98b1d8c798 8173196: [REDO] C2 does not optimize redundant memory operations with G1
Reviewed-by: thartmann, kvn
2019-05-21 15:46:09 +02:00
Thomas Schatzl
d36c7bad82 8223693: Memory wastage in size of per-region type buffers in GC
Reviewed-by: kbarrett, sangheki
2019-06-03 10:51:28 +02:00
Thomas Schatzl
ac21f1bdd5 8223162: Improve ergonomics for Sparse PRT entry sizing
Scale Sparse PRT table sizes exponentially according to region size.

Reviewed-by: kbarrett, sangheki
2019-06-03 10:50:14 +02:00
Stefan Karlsson
4914e0ee95 8224203: Remove need to specify type when using FLAG_SET macros
Reviewed-by: rehn, pliden, coleenp
2019-05-22 13:06:31 +02:00
Stefan Karlsson
c9846fce19 8224201: Simplify JVM flag macro expansions
Reviewed-by: rehn, kvn, stuefe, tschatzl, coleenp, gziemski
2019-05-22 13:05:37 +02:00
Thomas Schatzl
8c6727240e 8224160: Move G1RemSetScanClosure into g1RemSet.cpp file
Reviewed-by: kbarrett, sangheki
2019-05-22 11:19:14 +02:00
Kim Barrett
54d0b2a8d6 8224167: Refactor PtrQueue completed buffer processing
Add handle_completed_buffer and refactor.

Reviewed-by: tschatzl, shade
2019-05-21 19:19:44 -04:00
Thomas Schatzl
4b086a28a5 8222492: G1 unnecessarily scans remembered set cards for regions that already have been evacuated
Filter out cards from the current collection set during evacuation increments.

Reviewed-by: kbarrett, sangheki
2019-05-18 22:11:25 +02:00
Thomas Schatzl
0a6207fe69 8224038: Fix remaining InCSetState mentions
Reviewed-by: kbarrett
2019-05-17 12:33:37 +02:00
Thomas Schatzl
b1278c587f 8223018: Rename G1RemSet::*oops_into_collection_set_do methods
Reviewed-by: manc, sangheki
2019-05-14 15:36:26 +02:00
Thomas Schatzl
3d149df158 8200545: Improve filter for enqueued deferred cards
Reviewed-by: kbarrett, sangheki
2019-05-14 15:36:26 +02:00
Stefan Karlsson
c90f3ee68b 8223624: Cleanup includes of universe.hpp
Reviewed-by: coleenp, lkorinth
2019-05-09 14:28:30 +02:00
Stefan Karlsson
e321fd163d 8223619: Move VerifyOption out of Universe
Reviewed-by: coleenp, lkorinth
2019-05-09 14:26:03 +02:00
Coleen Phillimore
dc2c1d3ba8 8223391: Unsynchronized iteration of ClassLoaderDataGraph
Lock in G1 before clear_claimed_marks

Reviewed-by: hseigel, lfoltan, tschatzl
2019-05-08 06:40:45 -04:00
Sangheon Kim
cb62a78492 8221509: Refactor assert( G1CollectedHeap::used() == recalculate_used() ) with better message
Reviewed-by: tschatzl, manc
2019-05-06 14:19:48 -07:00
Man Cao
ce32bc437c 8223267: Fix incorrect usage of GCTraceTime in g1FullCollector and g1CollectedHeap
Reviewed-by: kbarrett, tschatzl
2019-05-02 15:46:34 -07:00
Kim Barrett
a8e13a5839 8221359: Eliminate SATBMarkQueueSet::filter_thread_buffers
Removed filter_thread_buffers

Reviewed-by: tschatzl, sangheki
2019-05-03 23:35:12 -04:00
Stefan Karlsson
087c03a0c7 8198505: Remove CollectorPolicy and its subclasses
Reviewed-by: pliden, shade
2019-04-15 11:47:46 +02:00
Vladimir Kozlov
e9c523ae5f 8220623: [JVMCI] Update JVMCI to support JVMCI based Compiler compiled into shared library
Reviewed-by: dnsimon, never, stefank, rehn, neliasso, dholmes, kbarrett, coleenp
2019-05-01 12:31:29 -07:00
Coleen Phillimore
ccb2e9d925 8222988: Use MonitorLocker rather than MutexLocker when wait/notify used
Fixed use cases in code except CMS.

Reviewed-by: rehn, dcubed
2019-04-29 16:01:52 -04:00
Coleen Phillimore
fbafef11c0 8222811: Consolidate MutexLockerEx and MutexLocker
Make MutexLocker be MutexLockerEx implementation, remove MutexLockerEx calls.

Reviewed-by: dcubed, dholmes, pliden, rehn
2019-04-25 10:56:31 -04:00
Sangheon Kim
bb31c7d085 8218049: Survivor MemoryMXBean used() size granularity is region based
Reviewed-by: tschatzl, kbarrett
2019-04-08 12:15:40 -07:00
Thomas Schatzl
f6116c5498 8222105: Add "use_" prefix to G1Policy::adaptive_young_list_length
Improve naming of G1Policy::adaptive_young_list_length to improve readability.

Reviewed-by: kbarrett
2019-04-08 21:01:17 +02:00
Thomas Schatzl
884545e54f 8218668: Clean up evacuation of optional collection set
Better integrate optional collection set evacuation into the existing evacuation scheme, fixing a few minor issues with the initial implementation.

Reviewed-by: kbarrett, sangheki
2019-04-08 20:37:52 +02:00
Kim Barrett
e7e00f7ae0 8221102: Allow GC threads to participate in threads claiming protocol
Expand claim counter from 1bit to uintx, with rare overflow handling.

Reviewed-by: tschatzl, rkennke
2019-04-02 13:08:38 -04:00
Per Lidén
a7dd794beb 8221648: Remove CollectedHeap::is_in_closed_subset()
Reviewed-by: kbarrett, tschatzl
2019-04-02 10:04:25 +02:00
Sangheon Kim
4494be3b5f 8221517: G1: Reserved page size for heap can be wrong
Reviewed-by: tschatzl, kbarrett
2019-04-01 14:54:48 -07:00
Kim Barrett
757e6ecfec 8220671: Initialization race for non-JavaThread PtrQueues
Include on_thread_(attach|detach) under NJTList_lock.

Reviewed-by: pliden, rkennke
2019-04-01 17:11:38 -04:00
Stefan Karlsson
cb58cddccb 8221558: Remove obsolete uses of OopStorage::ParState<'false, false> _par_state
Reviewed-by: pliden, tschatzl
2019-04-01 18:36:12 +02:00
Stefan Karlsson
abb2d67803 8220610: Make CollectedHeap nmethod functions pure virtual
Reviewed-by: shade
2019-04-01 18:34:39 +02:00
Leo Korinth
b0b6b497a4 8221260: Initialize more class members on construction, remove some unused ones
Reviewed-by: kbarrett, tschatzl
2019-03-25 14:46:55 +01:00
Thomas Schatzl
efe03d5a90 8219100: Improve do_collection_pause_at_safepoint
Reviewed-by: kbarrett, sangheki
2019-03-25 14:11:09 +01:00
Kim Barrett
3bb3dbc47e 8220240: Refactor shared dirty card queue
Add G1SharedDirtyCardQueue class.

Reviewed-by: tschatzl, lkorinth
2019-03-22 15:42:43 -04:00
Stefan Karlsson
2370adc703 8220343: Move scavenge_root_nmethods from shared code
Reviewed-by: kvn, eosterlund
2019-03-14 09:15:51 +01:00
Stefan Karlsson
b9cf9e7ca4 8220411: Remove ScavengeRootsInCode=0 code
Reviewed-by: thartmann, coleenp
2019-03-14 09:08:17 +01:00
Thomas Schatzl
687596a858 8220345: Use appropriate type for G1RemSetScanState::IsDirtyRegionState
Reviewed-by: kbarrett, lkorinth
2019-03-13 21:01:56 +01:00
Thomas Schatzl
ece7e8a2a1 8220301: Remove jbyte use in CardTable
Use CardTable::CardValue aliased to uint8_t instead.

Reviewed-by: kbarrett, shade
2019-03-13 21:01:56 +01:00
Per Lidén
c6917cc27e 8219817: Remove unused CollectedHeap::block_size()
Reviewed-by: shade, stefank
2019-03-13 11:31:00 +01:00
Kim Barrett
725a467ad8 8219613: Use NonJavaThread PtrQueues
Init and use NJT queues, remove shared SATB queue.

Co-authored-by: Aleksey Shipilev <shade@redhat.com>
Reviewed-by: shade, zgu, pliden, tschatzl
2019-03-05 19:54:33 -05:00
Thomas Schatzl
3d9de2e6f2 8219856: Spell out G1CollectorPolicy::is_hetero_heap
Reviewed-by: sangheki, kbarrett
2019-03-04 11:49:16 +01:00
Thomas Schatzl
bfaeb63761 8219748: Add and use getter for the timing object in G1
Reviewed-by: shade, kbarrett
2019-03-04 11:49:16 +01:00
Thomas Schatzl
5fe5d0a90a 8219747: Remove g1_ prefix to g1_remset and g1_policy members in G1CollectedHeap
Reviewed-by: shade, sangheki
2019-03-04 11:49:16 +01:00
Thomas Schatzl
719bbcddf8 8219369: Add named constants for iterating ExtRootScan phases
Reviewed-by: kbarrett, sangheki
2019-03-04 11:49:16 +01:00
Thomas Schatzl
e68d585a8d 8218880: G1 crashes when issuing a periodic GC while the GCLocker is held
Do not wait for the GC locker in the periodic GC thread as the GC locker being held is an indication for being busy anyway.

Reviewed-by: kbarrett, shade
2019-03-04 11:49:16 +01:00
Igor Ignatyev
7cf85f15b6 8219565: [deadcode] remove share/utilities/intHisto.*
Reviewed-by: dholmes
2019-02-28 09:10:46 -08:00
Thomas Schatzl
eaab45a8b8 8219096: Merge print_termination_stats code with current logging
Reviewed-by: lkorinth, kbarrett
2019-02-20 14:30:33 +01:00
Thomas Schatzl
708b339eb4 8219098: Make output of region strings more regular in error messages
Error messages should use the HR_PARAMS/HR_FORMAT_PARAMS macros to print information about HeapRegions.

Reviewed-by: kbarrett, lkorinth
2019-02-20 10:48:36 +01:00