119 Commits

Author SHA1 Message Date
Stefan Johansson
2c4fbbca23 8252141: Rename G1YoungRemSetSamplingThread to better reflect its purpose
Reviewed-by: kbarrett, tschatzl
2020-09-01 15:55:56 +02:00
Thomas Schatzl
8a56d7e00d 8252034: G1: Remove *g1_reserved* methods
Remove duplicate methods.

Reviewed-by: sjohanss, kbarrett
2020-08-21 11:54:34 +02:00
Stefan Karlsson
51c8ac362e 8251837: Rename get_safepoint_workers to safepoint_workers
Reviewed-by: tschatzl
2020-08-17 11:36:09 +02:00
Stefan Karlsson
2631422bc5 8251570: JDK-8215624 causes assert(worker_id <' _n_workers) failed: Invalid worker_id
Reviewed-by: kbarrett, sjohanss
2020-08-17 11:32:26 +02:00
Lin Zang
3498a10a2b 8215624: Add parallel heap iteration for jmap –histo
Chunk and parallelize the heap scan

Reviewed-by: sspitsyn, stefank, phh
2020-08-13 11:31:37 -07:00
Thomas Schatzl
9852a6f75c 8248401: Refactor/unify RMI gc support functionality
Move recent timestamp of most recent whole heap liveness analysis into CollectedHeap, removing the duplicates in all collectors

Reviewed-by: kbarrett, ayang, stefank
2020-08-07 19:23:53 +02:00
Thomas Schatzl
6b911624f2 8210462: Fix remaining mentions of initial mark
Reviewed-by: lkorinth, kbarrett
2020-07-09 16:22:23 +02:00
Thomas Schatzl
59e3ebb4a5 8248322: G1: Refactor full collection sizing code
Reviewed-by: iwalulya, kbarrett
2020-07-09 16:22:22 +02:00
Kim Barrett
f8596b57f3 8247740: Inline derived CollectedHeap access for G1 and ParallelGC
Added shared helper in CollectedHeap, and inlined for G1 and ParallelGC

Reviewed-by: stefank, pliden
2020-06-23 05:58:52 -04:00
Per Lidén
06e47d05b6 8246622: Remove CollectedHeap::print_gc_threads_on()
Reviewed-by: stefank, tschatzl, sjohanss
2020-06-05 15:22:53 +02:00
Kim Barrett
5b3c33ac67 8245022: ParallelGC abuses StarTask to also include partial objarray scan tasks
Change ParallelGC young collections to use ScannerTasks.

Reviewed-by: tschatzl, sjohanss
2020-05-20 17:21:16 -04:00
Kim Barrett
1856ff8913 8244684: G1 abuses StarTask to also include partial objarray scan tasks
New ScannerTask and PartialArrayScanTask, initially used by G1

Reviewed-by: tschatzl, sjohanss
2020-05-14 08:24:36 -04:00
Kim Barrett
4694da31f8 8242078: G1: Improve concurrent refinement analytics and logging
Unify data collection and reporting.

Reviewed-by: tschatzl, sjohanss
2020-04-14 17:31:53 -04:00
Stefan Johansson
52ea4802f1 8241141: Restructure humongous object allocation in G1
Reviewed-by: tschatzl, kbarrett
2020-04-08 18:38:31 +02:00
Kim Barrett
9f334a1640 8240239: Replace ConcurrentGCPhaseManager
Replace ConcurrentGCPhaseManager with ConcurrentGCBreakpoints

Co-authored-by: Per Liden <per.liden@oracle.com>
Reviewed-by: kbarrett, pliden, sangheki
2020-03-06 18:42:13 -05:00
Thomas Schatzl
77ad678fce 8238220: Rename OWSTTaskTerminator to TaskTerminator
Reviewed-by: sjohanss, sangheki
2020-02-03 10:45:44 +01:00
Thomas Schatzl
76675e93cf 8215297: Remove ParallelTaskTerminator
Remove ParallelTaskTerminator as the alternate OWSTTaskTerminator algorithm has worked well for more than a year now.

Reviewed-by: zgu, sjohanss
2020-02-03 10:45:43 +01:00
Kim Barrett
f262092fd9 8233822: VM_G1CollectForAllocation should always check for upgrade to full
Move upgrade check into do_collection_pause_at_safepoint.

Reviewed-by: tschatzl, sangheki
2020-01-29 15:48:22 -05:00
Thomas Schatzl
fab3122111 8214277: Use merged G1ArchiveRegionMap for open and closed archive heap regions
Reviewed-by: kbarrett, jiangli
2020-01-09 21:57:18 +01:00
Stefan Johansson
a20fa5b995 8235427: Remove unnecessary parameters from G1CollectedHeap::free_region and HeapRegion::hr_clear
Reviewed-by: tschatzl, kbarrett
2019-12-11 12:12:39 +01:00
Stefan Karlsson
5b155f05e7 8235324: Dying objects are published from users of CollectedHeap::object_iterate
Reviewed-by: pliden, eosterlund, sjohanss, rkennke
2019-12-04 11:30:32 +01:00
Stefan Johansson
9cabfa82ff 8165443: Free Collection Set serial phase takes very long on large heaps
Reviewed-by: tschatzl, kbarrett
2019-12-09 10:26:41 +01:00
Stefan Johansson
4266daf9c9 8141637: Parallelize single threaded heap region iteration during Pre Evacuate Collection Set
Reviewed-by: tschatzl, lkorinth
2019-11-27 12:18:40 +01:00
Thomas Schatzl
9a4c25731e 8228609: G1 copy cost prediction uses used vs. actual copied byte
Let the object copy cost predictor use the actual copied bytes as input for the prediction instead of the used bytes.

Reviewed-by: kbarrett, sjohanss
2019-11-21 11:42:54 +01:00
Per Lidén
08822b4e05 8234437: Remove CollectedHeap::safe_object_iterate()
Reviewed-by: kbarrett, sjohanss
2019-11-20 10:37:46 +01:00
Kim Barrett
7e2ec3bdc3 8233280: Remove GCLockerInvokesConcurrent
Remove use and make option obsolete.

Reviewed-by: tschatzl, sjohanss
2019-11-15 16:58:29 -05:00
Kim Barrett
19bed24b1f 8232588: G1 concurrent System.gc can return early or late
8233279: G1: GCLocker GC with +GCLockerInvokesConcurrent spins while cycle in progress

Refactor G1CH::try_collect and fix bugs with concurrent collections.

Reviewed-by: tschatzl, sjohanss
2019-11-13 18:00:30 -05:00
Sangheon Kim
46c3d43f83 8220312: Implementation: NUMA-Aware Memory Allocation for G1, Logging (3/3)
Reviewed-by: kbarrett, sjohanss, tschatzl
2019-11-13 10:51:41 -08:00
Sangheon Kim
eaa6355cb0 8220311: Implementation: NUMA-Aware Memory Allocation for G1, Survivor (2/3)
Reviewed-by: kbarrett, sjohanss, tschatzl
2019-11-13 10:49:32 -08:00
Sangheon Kim
52116d808c 8220310: Implementation: NUMA-Aware Memory Allocation for G1, Mutator (1/3)
Reviewed-by: kbarrett, sjohanss, tschatzl, pliden
2019-11-13 10:49:12 -08:00
Thomas Schatzl
1c9dd15716 8232260: Remove g1 prefix in G1CollectedHeap::g1_hot_card_cache() getter
Reviewed-by: kbarrett, sjohanss
2019-10-16 12:36:44 +02:00
Thomas Schatzl
f92526e6fd 8231189: Rename worker_i parameters to worker_id
Reviewed-by: kbarrett, sjohanss
2019-09-23 11:37:08 +02:00
Kim Barrett
40565a845c 8230404: Refactor logged card refinement support in G1DirtyCardQueueSet
Separate concurrent refinement from STW refinement.

Reviewed-by: sjohanss, tschatzl
2019-09-06 13:38:55 -04:00
Erik Österlund
f869706f5f 8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
Reviewed-by: stefank, coleenp
2019-09-05 08:26:49 +02:00
Erik Österlund
855f16ef50 8229278: Improve hs_err location printing to assume less about GC internals
Reviewed-by: stefank, kbarrett
2019-08-28 11:19:09 +02:00
Kim Barrett
0b9a90e0d1 8229044: G1RedirtyCardsQueueSet should be local to a collection
Stack allocate redirty qsets in do_collection_pause_at_safepoint.

Reviewed-by: tschatzl, sangheki
2019-08-16 14:46:52 -04:00
Stefan Karlsson
ae5615c614 8229258: Rework markOop and markOopDesc into a simpler mark word value carrier
Reviewed-by: rkennke, coleenp, kbarrett, dcubed
2019-08-06 10:48:21 +02:00
Kim Barrett
4b3c528140 8162929: Enqueuing dirty cards into a single DCQS during GC does not scale
Refactor into G1RedirtyCardsQueue[Set] and G1DirtyCardQueueSet

Reviewed-by: tschatzl, sangheki
2019-07-19 16:47:11 -04:00
Thomas Schatzl
5a0525a560 8227671: G1: assert_used_and_recalculate_used_equal performs work in product builds
Reviewed-by: kbarrett, sangheki
2019-07-17 16:33:19 +02:00
Thomas Schatzl
d46d9318c1 8213108: Improve work distribution during remembered set scan
Before scanning the heap for roots into the collection set, merge them into a single remembered set (card table) and do work distribution based on location like other collectors do.

Reviewed-by: kbarrett, lkorinth
2019-06-27 11:48:32 +02:00
Thomas Schatzl
55492a7d8b 8225418: G1: region attribute remembered set state disagrees with actual remembered set state
Keep remembered set update information when updating region attributes when abandoning the remaining collection set after mixed gc.

Reviewed-by: kbarrett, mdoerr
2019-06-13 11:54:55 +02: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
3d149df158 8200545: Improve filter for enqueued deferred cards
Reviewed-by: kbarrett, sangheki
2019-05-14 15:36:26 +02: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
Stefan Karlsson
087c03a0c7 8198505: Remove CollectorPolicy and its subclasses
Reviewed-by: pliden, shade
2019-04-15 11:47:46 +02: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
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
Per Lidén
a7dd794beb 8221648: Remove CollectedHeap::is_in_closed_subset()
Reviewed-by: kbarrett, tschatzl
2019-04-02 10:04:25 +02:00
Stefan Karlsson
abb2d67803 8220610: Make CollectedHeap nmethod functions pure virtual
Reviewed-by: shade
2019-04-01 18:34:39 +02:00