You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Vijay (JIRA)" <ji...@apache.org> on 2014/11/21 19:27:37 UTC
[jira] [Created] (CASSANDRA-8362) Reduce memory usage of
RefCountedMemory
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)