-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b10
The test uses `theList.add(new Object());` to trigger OOM. From the context, it's not obvious whether the choice of the allocation size is of significance or not.
However, the choice is on purpose, as David put it:
```
The size is significant. We need to be sure there is not enough memory to create the ExceptionInInitializerError that the VM tries to create when the clinit throws the OOM. If you allocate big chunks we may get the OOM but still have memory left over for the EIIE.
```
Add doc around this to make the intention explicit.
However, the choice is on purpose, as David put it:
```
The size is significant. We need to be sure there is not enough memory to create the ExceptionInInitializerError that the VM tries to create when the clinit throws the OOM. If you allocate big chunks we may get the OOM but still have memory left over for the EIIE.
```
Add doc around this to make the intention explicit.
- links to
-
Commit(master) openjdk/jdk/8eb56845
-
Review(master) openjdk/jdk/20405