src/share/vm/gc_implementation/parallelScavenge/objectStartArray.hpp

changeset 1040
98cb887364d3
parent 435
a61af66fc99e
child 1907
c18cbe5936b8
equal deleted inserted replaced
1039:ec59443af135 1040:98cb887364d3
125 } 125 }
126 126
127 // Optimized for finding the first object that crosses into 127 // Optimized for finding the first object that crosses into
128 // a given block. The blocks contain the offset of the last 128 // a given block. The blocks contain the offset of the last
129 // object in that block. Scroll backwards by one, and the first 129 // object in that block. Scroll backwards by one, and the first
130 // object hit should be at the begining of the block 130 // object hit should be at the beginning of the block
131 HeapWord* object_start(HeapWord* addr) const { 131 HeapWord* object_start(HeapWord* addr) const {
132 assert(_covered_region.contains(addr), "Must be in covered region"); 132 assert(_covered_region.contains(addr), "Must be in covered region");
133 jbyte* block = block_for_addr(addr); 133 jbyte* block = block_for_addr(addr);
134 HeapWord* scroll_forward = offset_addr_for_block(block--); 134 HeapWord* scroll_forward = offset_addr_for_block(block--);
135 while (scroll_forward > addr) { 135 while (scroll_forward > addr) {

mercurial