<propertyref name="javax.xml.stream.XMLInputFactory"/>
<propertyref name="org.apache.commons.logging.Log"/>
<propertyref name="java.locale.providers"/> <!-- required for Java 9 compilation -->
+ <propertyref name="version.id"/> <!-- to detect if we are running on slow Gump VM -->
</propertyset>
<!-- this can be overwriten to empty when running with Java 9 -->
}
System.out.println("Retry " + i + " because run-time is too high: " + millis);
}
-
+
+ boolean inGump = false;
+ String version = System.getProperty("version.id");
+ if(version != null && version.startsWith("gump-")) {
+ inGump = true;
+ }
+
// This time is typically ~800ms, versus ~7800ms to iterate getMergedRegion(int).
- assertTrue("Should have taken <2000 ms to iterate 50k merged regions but took " + millis, millis < 2000);
+ // when running in Gump, the VM is very slow, so we should allow much more time
+ assertTrue("Should have taken <2000 ms to iterate 50k merged regions but took " + millis,
+ inGump ? millis < 8000 : millis < 2000);
} finally {
wb.close();
}