@ Deprecated public static void madviseDontNeedTrackedBuffers ( ) { if ( openBuffersTracker == null ) { return ; } openBuffersTracker . forEachOpenTrackedBuffer ( new Function < MMapBuffer , Void > ( ) { @ Override public Void apply ( final MMapBuffer b ) { //noinspection deprecation madviseDontNeed ( b . memory . getAddress ( ) , b . memory . length ( ) ) ; return null ; } } ) ; }
If open buffers tracking is enabled calls madvise with MADV_DONTNEED for all tracked buffers . If open buffers tracking is disabled does nothing .