[jira] [Updated] (CASSANDRA-8362) Reduce memory usage of RefCountedMemory

2018-11-18 Thread C. Scott Andreas (JIRA)


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

C. Scott Andreas updated CASSANDRA-8362:

Component/s: Core

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

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Updated] (CASSANDRA-8362) Reduce memory usage of RefCountedMemory

2015-11-19 Thread Aleksey Yeschenko (JIRA)

 [ 
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)