You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2013/10/20 03:09:25 UTC

[03/12] git commit: assert that we're not using the size of a freed memory region (a sign of reference-counting bugs)

assert that we're not using the size of a freed memory region (a sign of reference-counting bugs)


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

Branch: refs/heads/cassandra-2.0
Commit: 0c65759ef4cb91bbca60881c9e3aae39ce9ddc2f
Parents: 6f0b880
Author: Jonathan Ellis <jb...@apache.org>
Authored: Sat Oct 19 23:43:10 2013 +0100
Committer: Jonathan Ellis <jb...@apache.org>
Committed: Sat Oct 19 23:43:10 2013 +0100

----------------------------------------------------------------------
 src/java/org/apache/cassandra/io/util/Memory.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0c65759e/src/java/org/apache/cassandra/io/util/Memory.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/util/Memory.java b/src/java/org/apache/cassandra/io/util/Memory.java
index 91c601d..f276190 100644
--- a/src/java/org/apache/cassandra/io/util/Memory.java
+++ b/src/java/org/apache/cassandra/io/util/Memory.java
@@ -156,6 +156,7 @@ public class Memory
 
     public long size()
     {
+        assert peer != 0;
         return size;
     }