8337550: Add documentation to TestOutOfMemoryDuringInit.java
Reviewed-by: dholmes
This commit is contained in:
parent
cf1230a5f7
commit
8eb56845e4
@ -44,6 +44,10 @@ public class TestOutOfMemoryDuringInit {
|
||||
static void forceInit() { }
|
||||
static {
|
||||
while (theList != null) {
|
||||
// Use the minimal allocation size to push heap occupation to
|
||||
// the limit, ensuring there is not enough memory to create the
|
||||
// ExceptionInInitializerError that the VM tries to create when
|
||||
// the clinit throws the OOM.
|
||||
theList.add(new Object());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user