jasperjiaguo commented on code in PR #13721:
URL: https://github.com/apache/pinot/pull/13721#discussion_r1717572645


##########
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/memory/unsafe/MmapMemory.java:
##########
@@ -124,6 +126,16 @@ private static class MapSection {
     });
     private final long _address;
     private final UnmapFun _unmapFun;
+    private static final LibC LIB_C;
+    static {
+      LibC libC = null;
+      try {
+        libC = LibraryLoader.create(LibC.class).failImmediately().load("c");
+      } catch (Throwable ignored) {
+        LOGGER.info("Could not load JNR C Library, madvise will not be used 
for mmap memory.");

Review Comment:
   Maybe make this warning? Anyways this only loads once



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to