@Test @DisplayName("getPageSize()") void getPageSize() { assumeTrue(mmanager != null); val pageSize = mmanager.getPageSize(); assertThat(pageSize).isPositive().withFailMessage("should be a power of two").isEqualTo(pageSize & -pageSize); }
@Override @Contract(pure = true) public long getPageSize() { return pageSize = super.getPageSize(); }
SmartUnsafeMemoryManager extends UnsafeMemoryManager { @Override @Contract(pure = true) public long getPageSize() { return pageSize = super.getPageSize(); } }
SmartUnsafeMemoryManager extends UnsafeMemoryManager { @Override @Contract(pure = true) public long getPageSize() { return pageSize = super.getPageSize(); } private  SmartUnsafeMemoryManager(); }
SmartUnsafeMemoryManager extends UnsafeMemoryManager { @Override @Contract(pure = true) public long getPageSize() { return pageSize = super.getPageSize(); } private  SmartUnsafeMemoryManager(); @Override @Contract(pure = true) boolean isValid(); @Override @Contract(pure = true) long getPageSize(); @Override @Contract(value = " -> fail", pure = true) @SuppressWarnings({"deprecation", "PMD.DataflowAnomalyAnalysis"}) long getHugepageSize(); @Override @Contract(pure = true) @SuppressWarnings("BooleanParameter") long allocate(long bytes, boolean huge, boolean lock); @Override @SuppressWarnings("BooleanParameter") void free(long address, long bytes, final boolean huge, final boolean lock); @Override @Contract(pure = true) @SuppressWarnings({"deprecation", "BooleanParameter", "IOResourceOpenedButNotSafelyClosed", "resource"}) long mmap(final @NotNull File file, final boolean huge, final boolean lock); @Override @SuppressWarnings({"deprecation", "BooleanParameter", "PMD.DataflowAnomalyAnalysis"}) void munmap(final long address, final @NotNull File file, final boolean huge, final boolean lock); @Override @Contract(pure = true) @SuppressWarnings("deprecation") @SuppressFBWarnings("") long virt2phys(final long address); @Override @Contract(value = "_, _, _ -> fail", pure = true) @SuppressWarnings({"deprecation", "BooleanParameter"}) @NotNull DmaMemory dmaAllocate(final long bytes, final boolean huge, final boolean lock); }
SmartUnsafeMemoryManager extends UnsafeMemoryManager { @Override @Contract(pure = true) public long getPageSize() { return pageSize = super.getPageSize(); } private  SmartUnsafeMemoryManager(); @Override @Contract(pure = true) boolean isValid(); @Override @Contract(pure = true) long getPageSize(); @Override @Contract(value = " -> fail", pure = true) @SuppressWarnings({"deprecation", "PMD.DataflowAnomalyAnalysis"}) long getHugepageSize(); @Override @Contract(pure = true) @SuppressWarnings("BooleanParameter") long allocate(long bytes, boolean huge, boolean lock); @Override @SuppressWarnings("BooleanParameter") void free(long address, long bytes, final boolean huge, final boolean lock); @Override @Contract(pure = true) @SuppressWarnings({"deprecation", "BooleanParameter", "IOResourceOpenedButNotSafelyClosed", "resource"}) long mmap(final @NotNull File file, final boolean huge, final boolean lock); @Override @SuppressWarnings({"deprecation", "BooleanParameter", "PMD.DataflowAnomalyAnalysis"}) void munmap(final long address, final @NotNull File file, final boolean huge, final boolean lock); @Override @Contract(pure = true) @SuppressWarnings("deprecation") @SuppressFBWarnings("") long virt2phys(final long address); @Override @Contract(value = "_, _, _ -> fail", pure = true) @SuppressWarnings({"deprecation", "BooleanParameter"}) @NotNull DmaMemory dmaAllocate(final long bytes, final boolean huge, final boolean lock);  }