Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
0372026
Card table as DCQ
tschatzl Feb 11, 2025
7782295
* remove some commented out debug code
tschatzl Feb 24, 2025
9e26abb
* remove mention of "enqueue" or "enqueuing" for actions related to p…
tschatzl Feb 24, 2025
3004a96
* fix crash when writing dirty cards for memory regions during card t…
tschatzl Feb 24, 2025
b8100b9
* mdoerr review: fix comments in ppc code
tschatzl Feb 24, 2025
0100d8e
* only provide byte map base for JavaThreads
tschatzl Feb 25, 2025
9ef9c5f
* remove unnecessarily added logging
tschatzl Feb 25, 2025
e51eec8
* ayang review 1
tschatzl Feb 28, 2025
7d361fc
* ayang review 1 (ctd)
tschatzl Feb 28, 2025
d87935a
* fix assert
tschatzl Feb 28, 2025
810bf2d
* fix comment (trailing whitespace)
tschatzl Mar 3, 2025
b3dd008
ayang review 2
tschatzl Mar 3, 2025
8f46dc9
* iwalulya initial comments
tschatzl Mar 4, 2025
9e2ee54
* do not change card table base for gc threads during swapping
tschatzl Mar 4, 2025
442d9ea
* iwalulya review 2
tschatzl Mar 4, 2025
fc674f0
* ayang review - fix comment
tschatzl Mar 4, 2025
b4d19d9
iwalulya review
tschatzl Mar 4, 2025
4a97811
ayang review
tschatzl Mar 4, 2025
a457e6e
* fix whitespace
tschatzl Mar 5, 2025
350a4fa
* iwalulya review
tschatzl Mar 6, 2025
c994000
* ayang review 3
tschatzl Mar 7, 2025
93b884f
* fix card table verification crashes: in the first refinement phase,…
tschatzl Mar 8, 2025
758fac0
* optimized RISCV gen_write_ref_array_post_barrier() implementation c…
tschatzl Mar 11, 2025
aec9505
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Mar 12, 2025
3766b76
* ayang review
tschatzl Mar 12, 2025
7861117
* when aborting refinement during full collection, the global card ta…
tschatzl Mar 13, 2025
51a9eed
* ayang review
tschatzl Mar 14, 2025
b073017
Merge branch 'master' into 8342381-card-table-instead-of-dcq
tschatzl Mar 14, 2025
447fe39
* more documentation on why we need to rendezvous the gc threads
tschatzl Mar 15, 2025
4d0afd5
* obsolete G1UpdateBufferSize
tschatzl Mar 17, 2025
ff9eb26
Merge branch 'master' into 8342382-card-table-instead-of-dcq3
tschatzl Mar 18, 2025
c833bc8
* factor out card table and refinement table merging into a single
tschatzl Mar 18, 2025
f419556
* fix IR code generation tests that change due to barrier cost changes
tschatzl Mar 19, 2025
5e76a51
* make young gen length revising independent of refinement thread
tschatzl Mar 20, 2025
d931104
Merge branch 'master' into submit/8342382-card-table-instead-of-dcq
tschatzl Mar 21, 2025
6d574da
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Mar 26, 2025
51fb6e6
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Apr 1, 2025
27b3dd6
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Apr 4, 2025
1c5a669
* missing file from merge
tschatzl Apr 4, 2025
c5d5f3a
Reorder includes
robcasloz Apr 9, 2025
9481821
Refine needs_liveness_data
robcasloz Apr 9, 2025
855ec8d
Do not unnecessarily pass around tmp2 in x86
robcasloz Apr 9, 2025
d4649ed
* ayang review: revising young gen length
tschatzl Apr 9, 2025
63b1de8
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Apr 10, 2025
39aa903
* fixes after merge related to 32 bit x86 removal
tschatzl Apr 10, 2025
fcf96a2
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Apr 10, 2025
fd77531
* remove support for 32 bit x86 in the barrier generation code, follo…
tschatzl Apr 10, 2025
068d2a3
* indentation fix
tschatzl Apr 10, 2025
e683152
* ayang review (part 1)
tschatzl Apr 11, 2025
a3b2386
* ayang review (part 2 - yield duration changes)
tschatzl Apr 11, 2025
e4bf1ac
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Apr 23, 2025
51dfbe5
Merge branch 'master' into card-table-as-dcq-merge
tschatzl Apr 29, 2025
8b56880
* ayang review: remove sweep_epoch
tschatzl Apr 29, 2025
1def83a
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl May 15, 2025
c07a73d
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Jun 10, 2025
750ed2d
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Jun 27, 2025
441c234
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Jul 7, 2025
5ab928e
Merge branch 'master' into pull/23739
tschatzl Jul 14, 2025
4b21868
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Jul 17, 2025
cea0e1b
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Jul 23, 2025
dd83638
* remove unused G1DetachedRefinementStats_lock
tschatzl Jul 23, 2025
23aa2c8
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Jul 28, 2025
188fc81
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Aug 5, 2025
7fe518e
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Aug 12, 2025
6c88f1d
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Aug 22, 2025
e8a8282
* forgot to actually save the files
tschatzl Aug 22, 2025
cc4b7a0
* fix merge error
tschatzl Aug 22, 2025
4a41b40
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Sep 1, 2025
b3873d6
* commit merge changes
tschatzl Sep 1, 2025
104d506
* improve logging for refinement, making it similar to marking logging
tschatzl Sep 3, 2025
2a614a2
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Sep 4, 2025
4601bf8
* sort includes
tschatzl Sep 8, 2025
87b4136
* iwalulya: remove confusing comment
tschatzl Sep 10, 2025
e7c3a06
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Sep 10, 2025
de1469d
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Sep 10, 2025
d0ca906
* aph review, fix some comment
tschatzl Sep 10, 2025
b47c7b0
* walulyai review
tschatzl Sep 10, 2025
c469c13
* walulyai review
tschatzl Sep 10, 2025
74e9240
* therealaph suggestion for avoiding the register aliasin in gen_writ…
tschatzl Sep 12, 2025
1ced9f9
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Sep 12, 2025
bf8cab3
* iwalulya review
tschatzl Sep 12, 2025
b5d22d5
Merge branch 'master' into 8342382-card-table-instead-of-dcq
tschatzl Sep 22, 2025
53ef008
* improved gen_write_ref_array_post_barrier() for riscv, contributed …
tschatzl Sep 22, 2025
6e37f8d
* iwalulya: "Amount of" -> "Number of" in new flag description
tschatzl Sep 22, 2025
311bb3e
* walulyai: remove cost_per_pending_card_ms_default array since we on…
tschatzl Sep 22, 2025
d80d690
* walulyai: remove unnecessarily introduced newline
tschatzl Sep 22, 2025
3c889e9
* walulyai: bufferNodeList can be removed
tschatzl Sep 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/hotspot/share/gc/g1/g1Analytics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
// They were chosen by running GCOld and SPECjbb on debris with different
// numbers of GC threads and choosing them based on the results

static double cost_per_logged_card_ms_defaults[] = {
static double cost_per_pending_card_ms_defaults[] = {
0.01, 0.005, 0.005, 0.003, 0.003, 0.002, 0.002, 0.0015
};

Expand Down Expand Up @@ -101,8 +101,8 @@ G1Analytics::G1Analytics(const G1Predictions* predictor) :
uint index = MIN2(ParallelGCThreads - 1, 7u);

// Start with inverse of maximum STW cost.
_concurrent_refine_rate_ms_seq.add(1/cost_per_logged_card_ms_defaults[0]);
// Some applications have very low rates for logging cards.
_concurrent_refine_rate_ms_seq.add(1/cost_per_pending_card_ms_defaults[0]);
// Some applications have very low rates for dirtying cards.
_dirtied_cards_rate_ms_seq.add(0.0);

_card_merge_to_scan_ratio_seq.set_initial(young_card_merge_to_scan_ratio_defaults[index]);
Expand Down
3 changes: 1 addition & 2 deletions src/hotspot/share/gc/g1/g1Arguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,8 @@ void G1Arguments::initialize() {

// Verify that the maximum parallelism isn't too high to eventually overflow
// the refcount in G1CardSetContainer.
uint max_parallel_refinement_threads = G1ConcRefinementThreads;
uint const divisor = 3; // Safe divisor; we increment by 2 for each claim, but there is a small initial value.
if (max_parallel_refinement_threads > UINT_MAX / divisor) {
if (G1ConcRefinementThreads > UINT_MAX / divisor) {
vm_exit_during_initialization("Too large parallelism for remembered sets.");
}

Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/g1/g1CardTableClaimTable.inline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ G1CardTable::CardValue* G1ChunkScanner::find_first_dirty_card(CardValue* i_card)
}
i_card++;
}
assert(false, "should have early-returned");
ShouldNotReachHere();
}
}

Expand All @@ -118,7 +118,7 @@ G1CardTable::CardValue* G1ChunkScanner::find_first_non_dirty_card(CardValue* i_c
}
i_card++;
}
assert(false, "should have early-returned");
ShouldNotReachHere();
}
}

Expand Down
32 changes: 16 additions & 16 deletions src/hotspot/share/gc/g1/g1ConcurrentRefine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ bool G1ConcurrentRefineSweepState::swap_java_threads_ct() {

class G1SwapThreadCardTableClosure : public HandshakeClosure {
public:
G1SwapThreadCardTableClosure() : HandshakeClosure("G1 Swap JT card table") { }
G1SwapThreadCardTableClosure() : HandshakeClosure("G1 Java Thread CT swap") { }

virtual void do_thread(Thread* thread) {
G1BarrierSet* bs = G1BarrierSet::g1_barrier_set();
Expand Down Expand Up @@ -277,14 +277,14 @@ void G1ConcurrentRefineSweepState::snapshot_heap(bool concurrent) {

set_state_start_time();

snapshot_heap_into(_sweep_table);
snapshot_heap_inner();

advance_state(State::SweepRT);
} else {
assert_state(State::Idle);
assert_at_safepoint();

snapshot_heap_into(_sweep_table);
snapshot_heap_inner();
}
}

Expand Down Expand Up @@ -352,13 +352,13 @@ bool G1ConcurrentRefineSweepState::complete_work(bool concurrent, bool print_log
return has_sweep_rt_work;
}

void G1ConcurrentRefineSweepState::snapshot_heap_into(G1CardTableClaimTable* sweep_table) {
void G1ConcurrentRefineSweepState::snapshot_heap_inner() {
// G1CollectedHeap::heap_region_iterate() below will only visit currently committed
// regions. Initialize all entries in the state table here and later in this method
// selectively enable regions that we are interested. This way regions committed
// later will be automatically excluded from iteration.
// Their refinement table must be completely empty anyway.
sweep_table->reset_all_to_claimed();
_sweep_table->reset_all_to_claimed();

class SnapshotRegionsClosure : public G1HeapRegionClosure {
G1CardTableClaimTable* _sweep_table;
Expand All @@ -377,7 +377,7 @@ void G1ConcurrentRefineSweepState::snapshot_heap_into(G1CardTableClaimTable* swe
}
return false;
}
} cl(sweep_table);
} cl(_sweep_table);
G1CollectedHeap::heap()->heap_region_iterate(&cl);
}

Expand Down Expand Up @@ -477,18 +477,18 @@ void G1ConcurrentRefine::control_thread_do(ThreadClosure *tc) {
_thread_control.control_thread_do(tc);
}

void G1ConcurrentRefine::update_pending_cards_target(double logged_cards_time_ms,
size_t processed_logged_cards,
void G1ConcurrentRefine::update_pending_cards_target(double pending_cards_time_ms,
size_t processed_pending_cards,
double goal_ms) {
size_t minimum = minimum_pending_cards_target();
if ((processed_logged_cards < minimum) || (logged_cards_time_ms == 0.0)) {
if ((processed_pending_cards < minimum) || (pending_cards_time_ms == 0.0)) {
log_debug(gc, ergo, refine)("Unchanged pending cards target: %zu (processed %zu minimum %zu time %1.2f)",
_pending_cards_target, processed_logged_cards, minimum, logged_cards_time_ms);
_pending_cards_target, processed_pending_cards, minimum, pending_cards_time_ms);
return;
}

// Base the pending cards budget on the measured rate.
double rate = processed_logged_cards / logged_cards_time_ms;
double rate = processed_pending_cards / pending_cards_time_ms;
size_t new_target = static_cast<size_t>(goal_ms * rate);
// Add some hysteresis with previous values.
if (is_pending_cards_target_initialized()) {
Expand All @@ -500,15 +500,15 @@ void G1ConcurrentRefine::update_pending_cards_target(double logged_cards_time_ms
log_debug(gc, ergo, refine)("New pending cards target: %zu", new_target);
}

void G1ConcurrentRefine::adjust_after_gc(double logged_cards_time_ms,
size_t processed_logged_cards,
void G1ConcurrentRefine::adjust_after_gc(double pending_cards_time_ms,
size_t processed_pending_cards,
double goal_ms) {
if (!G1UseConcRefinement) {
return;
}

update_pending_cards_target(logged_cards_time_ms,
processed_logged_cards,
update_pending_cards_target(pending_cards_time_ms,
processed_pending_cards,
goal_ms);
if (_thread_control.is_refinement_enabled()) {
_needs_adjust = true;
Expand Down Expand Up @@ -564,7 +564,7 @@ bool G1ConcurrentRefine::adjust_num_threads_periodically() {
_needs_adjust = true;
}

return (_num_threads_wanted > 0) && !wait_for_heap_lock();
return (_num_threads_wanted > 0) && !heap_was_locked();
}

void G1ConcurrentRefine::adjust_threads_wanted(size_t available_bytes) {
Expand Down
12 changes: 6 additions & 6 deletions src/hotspot/share/gc/g1/g1ConcurrentRefine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class G1ConcurrentRefineSweepState {

void assert_state(State expected);

static void snapshot_heap_into(G1CardTableClaimTable* sweep_table);
void snapshot_heap_inner();

public:
G1ConcurrentRefineSweepState(uint max_reserved_regions);
Expand Down Expand Up @@ -235,8 +235,8 @@ class G1ConcurrentRefine : public CHeapObj<mtGC> {
return _pending_cards_target != PendingCardsTargetUninitialized;
}

void update_pending_cards_target(double logged_cards_scan_time_ms,
size_t processed_logged_cards,
void update_pending_cards_target(double pending_cards_scan_time_ms,
size_t processed_pending_cards,
double goal_ms);

uint64_t adjust_threads_period_ms() const;
Expand Down Expand Up @@ -268,8 +268,8 @@ class G1ConcurrentRefine : public CHeapObj<mtGC> {
// cards. Updates the mutator refinement threshold. Ensures the refinement
// control thread (if it exists) is active, so it will adjust the number
// of running threads.
void adjust_after_gc(double logged_cards_scan_time_ms,
size_t processed_logged_cards,
void adjust_after_gc(double pending_cards_scan_time_ms,
size_t processed_pending_cards,
double goal_ms);

// Target number of pending dirty cards at the start of the next GC.
Expand Down Expand Up @@ -298,7 +298,7 @@ class G1ConcurrentRefine : public CHeapObj<mtGC> {

// Indicate that last refinement adjustment had been deferred due to not
// obtaining the heap lock.
bool wait_for_heap_lock() const { return _heap_was_locked; }
bool heap_was_locked() const { return _heap_was_locked; }

uint num_threads_wanted() const { return _num_threads_wanted; }
uint max_num_threads() const { return _thread_control.max_num_threads(); }
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1ConcurrentRefineThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void G1ConcurrentRefineThread::run_service() {
log_debug(gc, refine)("Concurrent Refine Adjust Only (#threads wanted: %u adjustment_needed: %s wait_for_heap_lock: %s) %.2fms",
cr()->num_threads_wanted(),
BOOL_TO_STR(cr()->is_thread_adjustment_needed()),
BOOL_TO_STR(cr()->wait_for_heap_lock()),
BOOL_TO_STR(cr()->heap_was_locked()),
(Ticks::now() - adjust_start).seconds() * MILLIUNITS);

deactivate();
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1GCPhaseTimes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ G1GCPhaseTimes::G1GCPhaseTimes(STWGCTimer* gc_timer, uint max_gc_threads) :
_gc_par_phases[MergePSS] = new WorkerDataArray<double>("MergePSS", "Merge Per-Thread State (ms):", max_gc_threads);
_gc_par_phases[RestoreEvacuationFailedRegions] = new WorkerDataArray<double>("RestoreEvacuationFailedRegions", "Restore Evacuation Failed Regions (ms):", max_gc_threads);
_gc_par_phases[RemoveSelfForwards] = new WorkerDataArray<double>("RemoveSelfForwards", "Remove Self Forwards (ms):", max_gc_threads);
_gc_par_phases[ClearCardTable] = new WorkerDataArray<double>("ClearLoggedCards", "Clear Logged Cards (ms):", max_gc_threads);
_gc_par_phases[ClearCardTable] = new WorkerDataArray<double>("ClearPendingCards", "Clear Pending Cards (ms):", max_gc_threads);
_gc_par_phases[RecalculateUsed] = new WorkerDataArray<double>("RecalculateUsed", "Recalculate Used Memory (ms):", max_gc_threads);
#if COMPILER2_OR_JVMCI
_gc_par_phases[UpdateDerivedPointers] = new WorkerDataArray<double>("UpdateDerivedPointers", "Update Derived Pointers (ms):", max_gc_threads);
Expand Down
42 changes: 21 additions & 21 deletions src/hotspot/share/gc/g1/g1Policy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,27 +768,27 @@ bool G1Policy::concurrent_operation_is_full_mark(const char* msg) {
((_g1h->gc_cause() != GCCause::_g1_humongous_allocation) || need_to_start_conc_mark(msg));
}

double G1Policy::logged_cards_processing_time() const {
double G1Policy::pending_cards_processing_time() const {
double all_cards_processing_time = average_time_ms(G1GCPhaseTimes::ScanHR) + average_time_ms(G1GCPhaseTimes::OptScanHR);
size_t logged_dirty_cards = phase_times()->sum_thread_work_items(G1GCPhaseTimes::ScanHR, G1GCPhaseTimes::ScanHRPendingCards) +
phase_times()->sum_thread_work_items(G1GCPhaseTimes::OptScanHR, G1GCPhaseTimes::ScanHRPendingCards);
size_t pending_cards = phase_times()->sum_thread_work_items(G1GCPhaseTimes::ScanHR, G1GCPhaseTimes::ScanHRPendingCards) +
phase_times()->sum_thread_work_items(G1GCPhaseTimes::OptScanHR, G1GCPhaseTimes::ScanHRPendingCards);
size_t scan_heap_roots_cards = phase_times()->sum_thread_work_items(G1GCPhaseTimes::ScanHR, G1GCPhaseTimes::ScanHRScannedCards) +
phase_times()->sum_thread_work_items(G1GCPhaseTimes::OptScanHR, G1GCPhaseTimes::ScanHRScannedCards);

double merge_logged_cards_time = phase_times()->cur_merge_refinement_table_time();
double merge_pending_cards_time = phase_times()->cur_merge_refinement_table_time();

// Approximate the time spent processing cards from log buffers by scaling
// the total processing time by the ratio of logged cards to total cards
// Approximate the time spent processing cards from pending cards by scaling
// the total processing time by the ratio of pending cards to total cards
// processed. There might be duplicate cards in different log buffers,
// leading to an overestimate. That effect should be relatively small
// unless there are few cards to process, because cards in buffers are
// dirtied to limit duplication. Also need to avoid scaling when both
// counts are zero, which happens especially during early GCs. So ascribe
// all of the time to the logged cards unless there are more total cards.
if (logged_dirty_cards >= scan_heap_roots_cards) {
return all_cards_processing_time + merge_logged_cards_time;
// all of the time to the pending cards unless there are more total cards.
if (pending_cards >= scan_heap_roots_cards) {
return all_cards_processing_time + merge_pending_cards_time;
}
return (all_cards_processing_time * logged_dirty_cards / scan_heap_roots_cards) + merge_logged_cards_time;
return (all_cards_processing_time * pending_cards / scan_heap_roots_cards) + merge_pending_cards_time;
}

// Anything below that is considered to be zero
Expand Down Expand Up @@ -1002,26 +1002,26 @@ void G1Policy::record_young_collection_end(bool concurrent_operation_is_full_mar
}

// Note that _mmu_tracker->max_gc_time() returns the time in seconds.
double logged_cards_time_goal_ms = _mmu_tracker->max_gc_time() * MILLIUNITS * G1RSetUpdatingPauseTimePercent / 100.0;
double pending_cards_time_goal_ms = _mmu_tracker->max_gc_time() * MILLIUNITS * G1RSetUpdatingPauseTimePercent / 100.0;

double const logged_cards_time_ms = logged_cards_processing_time();
size_t logged_cards = phase_times()->sum_thread_work_items(G1GCPhaseTimes::ScanHR, G1GCPhaseTimes::ScanHRPendingCards) +
phase_times()->sum_thread_work_items(G1GCPhaseTimes::OptScanHR, G1GCPhaseTimes::ScanHRPendingCards);
double const pending_cards_time_ms = pending_cards_processing_time();
size_t pending_cards = phase_times()->sum_thread_work_items(G1GCPhaseTimes::ScanHR, G1GCPhaseTimes::ScanHRPendingCards) +
phase_times()->sum_thread_work_items(G1GCPhaseTimes::OptScanHR, G1GCPhaseTimes::ScanHRPendingCards);

bool exceeded_goal = logged_cards_time_goal_ms < logged_cards_time_ms;
bool exceeded_goal = pending_cards_time_goal_ms < pending_cards_time_ms;
G1ConcurrentRefine* cr = _g1h->concurrent_refine();

log_debug(gc, ergo, refine)
("GC refinement: goal: %zu / %1.2fms, actual: %zu / %1.2fms, %s",
cr->pending_cards_target(),
logged_cards_time_goal_ms,
logged_cards,
logged_cards_time_ms,
pending_cards_time_goal_ms,
pending_cards,
pending_cards_time_ms,
(exceeded_goal ? " (exceeded goal)" : ""));

cr->adjust_after_gc(logged_cards_time_ms,
logged_cards,
logged_cards_time_goal_ms);
cr->adjust_after_gc(pending_cards_time_ms,
pending_cards,
pending_cards_time_goal_ms);
}

G1IHOPControl* G1Policy::create_ihop_control(const G1OldGenAllocationTracker* old_gen_alloc_tracker,
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1Policy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class G1Policy: public CHeapObj<mtGC> {
return collector_state()->in_young_only_phase() && !collector_state()->mark_or_rebuild_in_progress();
}

double logged_cards_processing_time() const;
double pending_cards_processing_time() const;
public:
const G1Predictions& predictor() const { return _predictor; }
const G1Analytics* analytics() const { return const_cast<const G1Analytics*>(_analytics); }
Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/gc/g1/TestGCLogMessages.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public boolean isAvailable() {
new LogMessageWithLevel("To-Young-Gen Cards:", Level.DEBUG),
new LogMessageWithLevel("Evac-Fail Cards:", Level.DEBUG),
new LogMessageWithLevel("Marked Cards:", Level.DEBUG),
new LogMessageWithLevel("Clear Logged Cards \\(ms\\):", Level.DEBUG),
new LogMessageWithLevel("Clear Pending Cards \\(ms\\):", Level.DEBUG),
new LogMessageWithLevel("Recalculate Used Memory \\(ms\\):", Level.DEBUG),

// Post Evacuate Cleanup 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static void main(String[] args) throws IOException {
"UpdateDerivedPointers",
"EagerlyReclaimHumongousObjects",
"ResetPartialArrayStateManager",
"ClearLoggedCards",
"ClearPendingCards",
"MergePSS",
"NonYoungFreeCSet",
"YoungFreeCSet",
Expand Down