Vijay created CASSANDRA-8362:
--------------------------------
Summary: Reduce memory usage of RefCountedMemory
Key: CASSANDRA-8362
URL: https://issues.apache.org/jira/browse/CASSANDRA-8362
Project: Cassandra
Issue Type: Bug
Reporter: Vijay
Assignee: Vijay
Priority: Minor
We can store the references as the first 4 bytes of the Unsafe memory and use
case CAS[1] for reference counting of the memory.
This change will reduce the object over head + additional 4 bytes from java
heap. Calling methods can reference as long's.
[1]
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/concurrent/atomic/AtomicInteger.java#AtomicInteger.incrementAndGet%28%29
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)