×

Elision of write barriers for stores whose values are in close proximity

  • US 20040186863A1
  • Filed: 03/21/2003
  • Published: 09/23/2004
  • Est. Priority Date: 03/21/2003
  • Status: Abandoned Application
First Claim
Patent Images

1. For employing a computer to compile source code that specifies operation of a mutator that includes at least one reference-writing instruction into object code for execution by a computer system, which includes memory, together with a garbage collector that relies on the mutator'"'"'s execution of write-barrier code to keep track of at least some reference modifications and operates in collection increments, in each of at least some of which it collects a respective collection set by reclaiming a portion of the memory that it determines to be occupied by objects that are no longer reachable, a method comprising:

  • (A) analyzing the source code to make a determination, for one of said at least one reference-writing instruction, whether that reference-writing instruction satisfies any elision criterion in a set of at least one elision criterion, where each criterion in said set of at least one elision criterion is satisfied only if execution of that reference-writing instruction will result in a heap state in which scanning the reference modified by that reference-writing instruction during any collection set'"'"'s collection will not affect the garbage collector'"'"'s ultimate determination of whether an object in that collection set is reachable; and

    (B) generating object code that;

    (i) directs the computer system to operate as the mutator;

    (ii) includes that reference-writing instruction;

    (iii) if said determination is negative, accompanies that reference-writing instruction with a write barrier that alerts the garbage collector to execution of the reference-writing instruction; and

    (iv) if the result of said determination is affirmative, omits such a write barrier.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×