diff --git a/jfuse-api/src/main/java/org/cryptomator/jfuse/api/Fuse.java b/jfuse-api/src/main/java/org/cryptomator/jfuse/api/Fuse.java index 37cf8c9b..d7d43701 100644 --- a/jfuse-api/src/main/java/org/cryptomator/jfuse/api/Fuse.java +++ b/jfuse-api/src/main/java/org/cryptomator/jfuse/api/Fuse.java @@ -43,7 +43,7 @@ public abstract class Fuse implements AutoCloseable { /** * The memory session associated with the lifecycle of this Fuse instance. */ - protected final Arena fuseArena = Arena.openShared(); + protected final Arena fuseArena = Arena.ofShared(); /** * The file system operations invoked by this FUSE file system. @@ -156,11 +156,9 @@ void waitForMountingToComplete(Path mountPoint, Future fuseLoop) throws @Blocking private int fuseLoop(FuseMount mount) { AtomicInteger result = new AtomicInteger(); - fuseArena.scope().whileAlive(() -> { - int r = mount.loop(); - result.set(r); - }); - return result.get(); + int r = mount.loop(); + result.set(r); + return r; } /** diff --git a/pom.xml b/pom.xml index 1bfd2b60..039c3cd8 100644 --- a/pom.xml +++ b/pom.xml @@ -79,7 +79,7 @@ maven-compiler-plugin 3.10.1 - 20 + 21 UTF-8 true