diff options
author | tschatzl <none@none> | 2013-05-15 11:05:09 +0200 |
---|---|---|
committer | tschatzl <none@none> | 2013-05-15 11:05:09 +0200 |
commit | 4db3fe4ca9df8cccedb2ffd2f5c5bce7b3c5c541 (patch) | |
tree | 1af45d48f2cb395e0f1d15152257fffa8b68ec45 /src/share/vm/memory/collectorPolicy.cpp | |
parent | 4503e365a6f9517366966423f96bc5fe1b10bb8d (diff) |
6843347: Boundary values in some public GC options cause crashes
Summary: Setting some public integer options to specific values causes crashes or undefined GC behavior. This patchset adds the necessary argument checking for these options.
Reviewed-by: jmasa, brutisso
Diffstat (limited to 'src/share/vm/memory/collectorPolicy.cpp')
-rw-r--r-- | src/share/vm/memory/collectorPolicy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/vm/memory/collectorPolicy.cpp b/src/share/vm/memory/collectorPolicy.cpp index f80494fbd..887c63735 100644 --- a/src/share/vm/memory/collectorPolicy.cpp +++ b/src/share/vm/memory/collectorPolicy.cpp @@ -752,7 +752,7 @@ HeapWord* GenCollectorPolicy::satisfy_failed_allocation(size_t size, // free memory should be here, especially if they are expensive. If this // attempt fails, an OOM exception will be thrown. { - IntFlagSetting flag_change(MarkSweepAlwaysCompactCount, 1); // Make sure the heap is fully compacted + UIntFlagSetting flag_change(MarkSweepAlwaysCompactCount, 1); // Make sure the heap is fully compacted gch->do_collection(true /* full */, true /* clear_all_soft_refs */, |