Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-6278

Use AtomicIntegerFieldUpdater to save memory in row cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.1 beta1
    • None
    • None

    Description

      from this:
      http://normanmaurer.me/blog/2013/10/28/Lesser-known-concurrent-classes-Part-1/

      instead of having an AtomicInteger, we can keep a volatile int and use AtomicIntegerFieldUpdater to atomically update the value

      Attachments

        Activity

          People

            marcuse Marcus Eriksson
            marcuse Marcus Eriksson
            Marcus Eriksson
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: