Skip to content

Commit

Permalink
#13196, #13213: Remove logging relic from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
uschindler committed Mar 26, 2024
1 parent 61e5da3 commit 9fffc6e
Showing 1 changed file with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,15 @@ static Optional<NativeAccess> getInstance() {
private static MethodHandle lookupMadvise() {
final Linker linker = Linker.nativeLinker();
final SymbolLookup stdlib = linker.defaultLookup();
final MethodHandle mh =
findFunction(
linker,
stdlib,
"posix_madvise",
FunctionDescriptor.of(
ValueLayout.JAVA_INT,
ValueLayout.ADDRESS,
ValueLayout.JAVA_LONG,
ValueLayout.JAVA_INT));
LOG.info("posix_madvise() available on this platform");
return mh;
return findFunction(
linker,
stdlib,
"posix_madvise",
FunctionDescriptor.of(
ValueLayout.JAVA_INT,
ValueLayout.ADDRESS,
ValueLayout.JAVA_LONG,
ValueLayout.JAVA_INT));
}

private static MethodHandle findFunction(
Expand Down

0 comments on commit 9fffc6e

Please sign in to comment.