Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/arguments.cpp @ 8040:a83cd101fd62
8005452: NPG: Create new flags for Metaspace resizing policy
Reviewed-by: johnc, jwilhelm, coleenp, stefank
author | jmasa |
---|---|
date | Wed, 23 Jan 2013 19:08:04 -0800 |
parents | 9425ba04792d |
children | b8d5d7a6c94c |
comparison
equal
deleted
inserted
replaced
8039:5e401ef52ec0 | 8040:a83cd101fd62 |
---|---|
1893 MinHeapFreeRatio, MaxHeapFreeRatio); | 1893 MinHeapFreeRatio, MaxHeapFreeRatio); |
1894 status = false; | 1894 status = false; |
1895 } | 1895 } |
1896 // Keeping the heap 100% free is hard ;-) so limit it to 99%. | 1896 // Keeping the heap 100% free is hard ;-) so limit it to 99%. |
1897 MinHeapFreeRatio = MIN2(MinHeapFreeRatio, (uintx) 99); | 1897 MinHeapFreeRatio = MIN2(MinHeapFreeRatio, (uintx) 99); |
1898 | |
1899 // Min/MaxMetaspaceFreeRatio | |
1900 status = status && verify_percentage(MinMetaspaceFreeRatio, "MinMetaspaceFreeRatio"); | |
1901 status = status && verify_percentage(MaxMetaspaceFreeRatio, "MaxMetaspaceFreeRatio"); | |
1902 | |
1903 if (MinMetaspaceFreeRatio > MaxMetaspaceFreeRatio) { | |
1904 jio_fprintf(defaultStream::error_stream(), | |
1905 "MinMetaspaceFreeRatio (%s" UINTX_FORMAT ") must be less than or " | |
1906 "equal to MaxMetaspaceFreeRatio (%s" UINTX_FORMAT ")\n", | |
1907 FLAG_IS_DEFAULT(MinMetaspaceFreeRatio) ? "Default: " : "", | |
1908 MinMetaspaceFreeRatio, | |
1909 FLAG_IS_DEFAULT(MaxMetaspaceFreeRatio) ? "Default: " : "", | |
1910 MaxMetaspaceFreeRatio); | |
1911 status = false; | |
1912 } | |
1913 | |
1914 // Trying to keep 100% free is not practical | |
1915 MinMetaspaceFreeRatio = MIN2(MinMetaspaceFreeRatio, (uintx) 99); | |
1898 | 1916 |
1899 if (FullGCALot && FLAG_IS_DEFAULT(MarkSweepAlwaysCompactCount)) { | 1917 if (FullGCALot && FLAG_IS_DEFAULT(MarkSweepAlwaysCompactCount)) { |
1900 MarkSweepAlwaysCompactCount = 1; // Move objects every gc. | 1918 MarkSweepAlwaysCompactCount = 1; // Move objects every gc. |
1901 } | 1919 } |
1902 | 1920 |