×

Single-word lock-free reference counting

  • US 7,299,242 B2
  • Filed: 01/10/2003
  • Issued: 11/20/2007
  • Est. Priority Date: 01/12/2001
  • Status: Active Grant
First Claim
Patent Images

1. A lock-free method of managing storage reclamation in a multi-threaded computation, the method comprising:

  • maintaining respective reference counts for storage blocks of a data structure shared amongst threads of the multi-threaded computation; and

    accessing pointers to the storage blocks using pointer operations to coordinate modification of the respective reference counts, wherein as a condition precedent to dereferencing a particular pointer loaded from the shared data structure, at least one of the pointer operations ensures that (i) an indication is made that one of the threads intends to dereference the particular pointer and (ii) the indication is sufficient to prevent freeing of a particular storage block referenced by the particular pointer.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×