cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject git commit: Ninja-fix RefCountedMemory
Date Fri, 25 Apr 2014 14:03:57 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 e9f180ca9 -> 7c0c34b1a


Ninja-fix RefCountedMemory


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/7c0c34b1
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/7c0c34b1
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/7c0c34b1

Branch: refs/heads/cassandra-2.1
Commit: 7c0c34b1a5635990751ce4ebbbf308673536cd41
Parents: e9f180c
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Fri Apr 25 17:03:50 2014 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Fri Apr 25 17:03:50 2014 +0300

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cache/RefCountedMemory.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/7c0c34b1/src/java/org/apache/cassandra/cache/RefCountedMemory.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cache/RefCountedMemory.java b/src/java/org/apache/cassandra/cache/RefCountedMemory.java
index fd26e2b..87dd6c4 100644
--- a/src/java/org/apache/cassandra/cache/RefCountedMemory.java
+++ b/src/java/org/apache/cassandra/cache/RefCountedMemory.java
@@ -23,6 +23,7 @@ import org.apache.cassandra.io.util.Memory;
 
 public class RefCountedMemory extends Memory implements AutoCloseable
 {
+    private volatile int references = 1;
     private static final AtomicIntegerFieldUpdater<RefCountedMemory> UPDATER = AtomicIntegerFieldUpdater.newUpdater(RefCountedMemory.class,
"references");
 
     public RefCountedMemory(long size)


Mime
View raw message