SYSTEM AND METHOD TO REDUCE OVERHEAD OF REFERENCE COUNTING
First Claim
Patent Images
1. An device for reference counting, comprising:
- a non-transitory memory storage comprising instructions; and
one or more processors in communication with the memory, wherein the one or more processors execute the instructions to perform operations comprising;
establishing a global reference counter associated with a lock to count one or more threads of a process referencing an object allocated in the memory;
tracking, by each of the threads, each reference to the object by the thread using a corresponding local reference counter; and
updating the global reference counter whenever a reference to the object by each of the one or more threads is and initial reference to the object or final reference to the object.
1 Assignment
0 Petitions
Accused Products
Abstract
The disclosure relates to technology for reference counting. A global reference counter associated with a lock to count one or more threads of a process referencing an object allocated in the memory is established. Each reference to the object by a thread is then tracked using a corresponding local reference counter. The global reference counter is updated whenever a reference to the object by each of the one or more threads is an initial reference or a final reference. Otherwise, local counters are used to track a local reference count of the object.
-
Citations
21 Claims
-
1. An device for reference counting, comprising:
-
a non-transitory memory storage comprising instructions; and one or more processors in communication with the memory, wherein the one or more processors execute the instructions to perform operations comprising; establishing a global reference counter associated with a lock to count one or more threads of a process referencing an object allocated in the memory; tracking, by each of the threads, each reference to the object by the thread using a corresponding local reference counter; and updating the global reference counter whenever a reference to the object by each of the one or more threads is and initial reference to the object or final reference to the object. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer-implemented method for reference counting, comprising:
-
establishing a global reference counter associated with a lock to count one or more threads of a process referencing an object allocated in the memory; tracking, by each of the threads, each reference to the object by the thread using a corresponding local reference counter; and updating the global reference counter whenever a reference to the object by each of the one or more threads is an initial reference to the object or a final reference to the object. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18)
-
-
19. A non-transitory computer-readable medium storing computer instructions for accessing cloud-based phone services over a distributed network by a remote device, that when executed by one or more processors, perform the steps of:
-
establishing a global reference counter associated with a lock to count one or more threads of a process referencing an object allocated in the memory; tracking, by each of the threads, each reference to the object by the thread using a corresponding local reference counter; and updating the global reference counter whenever a reference to the object by each of the one or more threads is and initial reference to the object or final reference to the object. - View Dependent Claims (20, 21)
-
Specification