You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: substratevm/src/com.oracle.svm.core.genscavenge/src/com/oracle/svm/core/genscavenge/BasicCollectionPolicies.java
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@
37
37
importcom.oracle.svm.core.heap.PhysicalMemory;
38
38
importcom.oracle.svm.core.heap.ReferenceAccess;
39
39
importcom.oracle.svm.core.util.TimeUtils;
40
+
importcom.oracle.svm.core.util.UnsignedUtils;
40
41
importcom.oracle.svm.core.util.VMError;
41
42
42
43
/** Basic/legacy garbage collection policies. */
@@ -109,10 +110,7 @@ public final UnsignedWord getMaximumHeapSize() {
Copy file name to clipboardExpand all lines: substratevm/src/com.oracle.svm.core.genscavenge/src/com/oracle/svm/core/genscavenge/HeapChunkProvider.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,10 @@
54
54
* list. Memory for unaligned chunks is released immediately.
55
55
*/
56
56
finalclassHeapChunkProvider {
57
+
/** These {@link OutOfMemoryError}s are only needed for legacy code, see GR-59639. */
58
+
privatestaticfinalOutOfMemoryErrorALIGNED_OUT_OF_MEMORY_ERROR = newOutOfMemoryError("Could not allocate an aligned heap chunk");
59
+
privatestaticfinalOutOfMemoryErrorUNALIGNED_OUT_OF_MEMORY_ERROR = newOutOfMemoryError("Could not allocate an unaligned heap chunk");
60
+
57
61
/**
58
62
* The head of the linked list of unused aligned chunks. Chunks are chained using
59
63
* {@link HeapChunk#getNext}.
@@ -78,10 +82,6 @@ public UnsignedWord getBytesInUnusedChunks() {
Copy file name to clipboardExpand all lines: substratevm/src/com.oracle.svm.core.windows/src/com/oracle/svm/core/windows/WindowsPhysicalMemorySupportImpl.java
throwUserError.abort("The specified %s (%s) is larger than the %s (%s).", actualValueName, format(actualValue), maxValueName, format(maxValue));
118
+
throwUserError.abort("The specified %s (%s) must not be larger than the %s (%s).", actualValueName, format(actualValue), maxValueName, format(maxValue));
86
119
} else {
87
120
thrownewIllegalArgumentException(
88
-
"The specified " + actualValueName + " (" + format(actualValue) + ") is larger than the " + maxValueName + " (" + format(maxValue) + ").");
121
+
"The specified " + actualValueName + " (" + format(actualValue) + ") must not be larger than the " + maxValueName + " (" + format(maxValue) + ").");
0 commit comments