The resexhausted002 test uses an 8M heap, which is a bit too small for ZGC. Bumping it to 128M to allow the test to pass on ZGC too. Bug: https://bugs.openjdk.java.net/browse/JDK-8231294 Webrev: http://cr.openjdk.java.net/~pliden/8231294/webrev.0 Testing: Manual testing with G1 and ZGC /Per