[ 
https://issues.apache.org/jira/browse/CASSANDRA-8362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aleksey Yeschenko updated CASSANDRA-8362:
-----------------------------------------
    Issue Type: Improvement  (was: Bug)

> Reduce memory usage of RefCountedMemory
> ---------------------------------------
>
>                 Key: CASSANDRA-8362
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8362
>             Project: Cassandra
>          Issue Type: Improvement
>            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)

Reply via email to