×

Method and apparatus for isolating selected heap objects using a faulting address trap

  • US 7,313,566 B1
  • Filed: 12/23/2004
  • Issued: 12/25/2007
  • Est. Priority Date: 12/23/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method for processing heap objects with an atomic operation using a faulting address trap, the method comprising:

  • selecting, by a first thread of a plurality of concurrently executing threads, a subset of heap objects;

    transforming, by the first thread, each reference to each heap object of the subset of heap objects in such a manner that the faulting address trap will be raised if an attempt is made by any other thread of the plurality of concurrently executing threads to access the heap object with the transformed reference;

    processing, by the first thread, each heap object of the subset of heap objects with the atomic operation, wherein an indication that the atomic operation has been performed on the heap object is stored; and

    if the faulting address trap is raised during the processing of the subset of heap objects by the first thread because a second thread of the plurality of concurrently executing threads has attempted to access a heap object of the subset of heap objects, suspending the second thread until the atomic operation is performed on the heap object the second thread attempted to access.

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