Skip to content

Commit 3fc2d04

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,11 @@ 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+
// The maximum size for eden is the entire youn generation, since ede
241+
// Eden might grow to be as large as the entire young generation, so the
242+
// maximum size is the entire virtual space.
243+
_max_eden_size = size;
240244

241245
// allocate the performance counters
242246

0 commit comments

Comments
 (0)