equal
deleted
inserted
replaced
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "gc/parallel/immutableSpace.hpp" |
26 #include "gc/parallel/immutableSpace.hpp" |
|
27 #include "memory/iterator.inline.hpp" |
27 #include "memory/universe.hpp" |
28 #include "memory/universe.hpp" |
28 #include "oops/oop.inline.hpp" |
29 #include "oops/oop.inline.hpp" |
29 #include "utilities/macros.hpp" |
30 #include "utilities/macros.hpp" |
30 |
31 |
31 void ImmutableSpace::initialize(MemRegion mr) { |
32 void ImmutableSpace::initialize(MemRegion mr) { |
37 |
38 |
38 _bottom = bottom; |
39 _bottom = bottom; |
39 _end = end; |
40 _end = end; |
40 } |
41 } |
41 |
42 |
42 void ImmutableSpace::oop_iterate(ExtendedOopClosure* cl) { |
43 void ImmutableSpace::oop_iterate(OopIterateClosure* cl) { |
43 HeapWord* obj_addr = bottom(); |
44 HeapWord* obj_addr = bottom(); |
44 HeapWord* t = end(); |
45 HeapWord* t = end(); |
45 // Could call objects iterate, but this is easier. |
46 // Could call objects iterate, but this is easier. |
46 while (obj_addr < t) { |
47 while (obj_addr < t) { |
47 obj_addr += oop(obj_addr)->oop_iterate_size(cl); |
48 obj_addr += oop(obj_addr)->oop_iterate_size(cl); |