Skip to content

Commit 00b085f

Browse files
committed
8372993: Serial: max_eden_size is too small after JDK-8368740
1 parent f1a4d1b commit 00b085f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hotspot/share/gc/serial/defNewGeneration.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ DefNewGeneration::DefNewGeneration(ReservedSpace rs,
236236
// These values are exported as performance counters.
237237
uintx size = _virtual_space.reserved_size();
238238
_max_survivor_size = compute_survivor_size(size, SpaceAlignment);
239-
_max_eden_size = size - (2*_max_survivor_size);
239+
240+
// Eden might grow to be as large as the entire young generation, so the
241+
// maximum size is the entire virtual space.
242+
_max_eden_size = size;
240243

241244
// allocate the performance counters
242245

0 commit comments

Comments
 (0)