in src/main/java/org/apache/activemq/artemis/nativo/jlibaio/LibaioFile.java [124:131]
public void fill(int alignment, long size) {
try {
LibaioContext.fill(fd, alignment, size);
} catch (OutOfMemoryError e) {
logger.warn("Did not have enough memory to allocate " + size + " bytes in memory while filling the file, using simple fallocate");
LibaioContext.fallocate(fd, size);
}
}