Skip to content

Commit

Permalink
cleanup use of 'G1ConcRefinementThreads'
Browse files Browse the repository at this point in the history
  • Loading branch information
LizBing committed Dec 12, 2023
1 parent 701bc3b commit c669aed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/hotspot/share/gc/g1/g1ConcurrentRefine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@ void G1ConcurrentRefine::threads_do(ThreadClosure *tc) {
_thread_control.worker_threads_do(tc);
}

uint G1ConcurrentRefine::max_num_threads() {
return G1ConcRefinementThreads;
}

void G1ConcurrentRefine::update_pending_cards_target(double logged_cards_time_ms,
size_t processed_logged_cards,
size_t predicted_thread_buffer_cards,
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1FromCardCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void G1FromCardCache::print(outputStream* out) {
#endif

uint G1FromCardCache::num_par_rem_sets() {
return G1DirtyCardQueueSet::num_par_ids() + G1ConcurrentRefine::max_num_threads() + MAX2(ConcGCThreads, ParallelGCThreads);
return G1DirtyCardQueueSet::num_par_ids() + G1ConcRefinementThreads + MAX2(ConcGCThreads, ParallelGCThreads);
}

void G1FromCardCache::clear(uint region_idx) {
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1RemSetSummary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ double G1RemSetSummary::rs_thread_vtime(uint thread) const {
}

G1RemSetSummary::G1RemSetSummary(bool should_update) :
_num_vtimes(G1ConcurrentRefine::max_num_threads()),
_num_vtimes(G1ConcRefinementThreads),
_rs_threads_vtimes(NEW_C_HEAP_ARRAY(double, _num_vtimes, mtGC)) {

memset(_rs_threads_vtimes, 0, sizeof(double) * _num_vtimes);
Expand Down

0 comments on commit c669aed

Please sign in to comment.