We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b939621 + 7e22c17 commit c7d9ddbCopy full SHA for c7d9ddb
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/heap/PhysicalMemory.java
@@ -63,6 +63,12 @@ public static boolean isInitializationInProgress() {
63
return LOCK.isHeldByCurrentThread();
64
}
65
66
+ @Uninterruptible(reason = "May only be called during early startup.")
67
+ public static void setSize(UnsignedWord value) {
68
+ VMError.guarantee(!isInitialized(), "PhysicalMemorySize must not be initialized yet.");
69
+ cachedSize = value;
70
+ }
71
+
72
/**
73
* Returns the size of physical memory in bytes, querying it from the OS if it has not been
74
* initialized yet.
0 commit comments