From: Noah Watkins Date: Fri, 11 Jan 2013 23:19:13 +0000 (-0800) Subject: java: remove create/release synchronization X-Git-Tag: v0.57~196^2~5^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fb8a488e22751696af0cf3710a1b63656def1844;p=ceph.git java: remove create/release synchronization The constructor calls create, and finalize() calls release. Since each of these can only happen once (enforced by Java), there is no fear of a race condition. Signed-off-by: Noah Watkins --- diff --git a/src/java/java/com/ceph/fs/CephMount.java b/src/java/java/com/ceph/fs/CephMount.java index 3bbd4bc701e5..3f58a8da149d 100644 --- a/src/java/java/com/ceph/fs/CephMount.java +++ b/src/java/java/com/ceph/fs/CephMount.java @@ -123,7 +123,7 @@ public class CephMount { initialized = true; } - private static synchronized native int native_ceph_create(CephMount mount, String id); + private static native int native_ceph_create(CephMount mount, String id); /** * Create a new CephMount with default client id. @@ -158,7 +158,7 @@ public class CephMount { /* * Private access to low-level ceph_release. */ - private static synchronized native int native_ceph_release(long mountp); + private static native int native_ceph_release(long mountp); /** * Load configuration from a file.