Navigation Menu

Skip to content

Commit

Permalink
8040793: vmTestbase/nsk/monitoring/stress/lowmem fails on calling isC…
Browse files Browse the repository at this point in the history
…ollectionUsageThresholdExceeded()

Backport-of: 0025764ec02bef391720962272b7219d34c00653
  • Loading branch information
TheRealMDoerr committed Jun 22, 2023
1 parent 781df52 commit 37d943e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hotspot/share/gc/serial/defNewGeneration.cpp
Expand Up @@ -198,6 +198,10 @@ void DefNewGeneration::compute_space_boundaries(uintx minimum_eden_size,
uintx size = _virtual_space.committed_size();
uintx survivor_size = compute_survivor_size(size, SpaceAlignment);
uintx eden_size = size - (2*survivor_size);
if (eden_size > max_eden_size()) {
eden_size = max_eden_size();
survivor_size = (size - eden_size)/2;
}
assert(eden_size > 0 && survivor_size <= eden_size, "just checking");

if (eden_size < minimum_eden_size) {
Expand Down

1 comment on commit 37d943e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.