Skip to content

Commit

Permalink
Error message
Browse files Browse the repository at this point in the history
  • Loading branch information
linade committed Feb 1, 2024
1 parent 32ef3e5 commit 7a8181a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ private static void checkGarbageCollectionNotificationInfoContent(GarbageCollect
private static void checkMemoryUsage(String poolname, String checkedPoolName,
MemoryUsage busage, MemoryUsage ausage) throws Exception {
if (poolname.contains(checkedPoolName) && busage.getUsed() > 0) {
// Used size at Eden Space should be decreased or
// Used size at the checked pool should be decreased or
if (busage.getUsed() <= ausage.getUsed()) {
throw new RuntimeException("Used size at Eden Space should be decreased.");
throw new RuntimeException("Used size at " + checkedPoolName + " should be decreased.");
}
}
}
Expand Down

0 comments on commit 7a8181a

Please sign in to comment.