Mercurial > hg > truffle
comparison src/share/vm/memory/space.cpp @ 20266:6c523f5d5440
8038412: Move object_iterate_careful down from Space to ContigousSpace and CFLSpace
Summary: Only declare the functions where they are actually needed.
Reviewed-by: tschatzl, stefank
author | mgerdin |
---|---|
date | Wed, 12 Mar 2014 17:13:48 +0100 |
parents | 5255b195f828 |
children | ff1e37e7eb83 |
comparison
equal
deleted
inserted
replaced
20265:5255b195f828 | 20266:6c523f5d5440 |
---|---|
549 void Space::oop_iterate(ExtendedOopClosure* blk) { | 549 void Space::oop_iterate(ExtendedOopClosure* blk) { |
550 ObjectToOopClosure blk2(blk); | 550 ObjectToOopClosure blk2(blk); |
551 object_iterate(&blk2); | 551 object_iterate(&blk2); |
552 } | 552 } |
553 | 553 |
554 HeapWord* Space::object_iterate_careful(ObjectClosureCareful* cl) { | |
555 guarantee(false, "NYI"); | |
556 return bottom(); | |
557 } | |
558 | |
559 HeapWord* Space::object_iterate_careful_m(MemRegion mr, | |
560 ObjectClosureCareful* cl) { | |
561 guarantee(false, "NYI"); | |
562 return bottom(); | |
563 } | |
564 | |
565 bool Space::obj_is_alive(const HeapWord* p) const { | 554 bool Space::obj_is_alive(const HeapWord* p) const { |
566 assert (block_is_obj(p), "The address should point to an object"); | 555 assert (block_is_obj(p), "The address should point to an object"); |
567 return true; | 556 return true; |
568 } | 557 } |
569 | 558 |