Skip to content

Commit c1c5bd0

Browse files
committed
8310541: G1: Remove redundant check in G1Policy::need_to_start_conc_mark
Reviewed-by: tschatzl, kbarrett
1 parent 5271f4d commit c1c5bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/gc/g1/g1Policy.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ bool G1Policy::need_to_start_conc_mark(const char* source, size_t alloc_word_siz
707707

708708
bool result = false;
709709
if (marking_request_bytes > marking_initiating_used_threshold) {
710-
result = collector_state()->in_young_only_phase() && !collector_state()->in_young_gc_before_mixed();
710+
result = collector_state()->in_young_only_phase();
711711
log_debug(gc, ergo, ihop)("%s occupancy: " SIZE_FORMAT "B allocation request: " SIZE_FORMAT "B threshold: " SIZE_FORMAT "B (%1.2f) source: %s",
712712
result ? "Request concurrent cycle initiation (occupancy higher than threshold)" : "Do not request concurrent cycle initiation (still doing mixed collections)",
713713
cur_used_bytes, alloc_byte_size, marking_initiating_used_threshold, (double) marking_initiating_used_threshold / _g1h->capacity() * 100, source);

0 commit comments

Comments
 (0)