jbang run https://gist.github.com/misTrasteos/e616b87452b215db116448216da59636\#file-stackorheapallocation-java
You will get a java.lang.OutOfMemoryError: Java heap space
. As we are using no-op Epsilon GC and we are allocation plenty of Integer objects in the heap.
jbang run -D=PRIMITIVE https://gist.github.com/misTrasteos/e616b87452b215db116448216da59636\#file-stackorheapallocation-java
It will run forever as primitive ints are being created inside the stack and removed after method exit.