8038412: Move object_iterate_careful down from Space to ContigousSpace and CFLSpace

Only declare the functions where they are actually needed.

Reviewed-by: tschatzl, stefank
This commit is contained in:
Mikael Gerdin 2014-03-12 17:13:48 +01:00
parent e72dd1b433
commit c62c16f94a
4 changed files with 10 additions and 61 deletions

View file

@ -547,17 +547,6 @@ void Space::oop_iterate(ExtendedOopClosure* blk) {
object_iterate(&blk2);
}
HeapWord* Space::object_iterate_careful(ObjectClosureCareful* cl) {
guarantee(false, "NYI");
return bottom();
}
HeapWord* Space::object_iterate_careful_m(MemRegion mr,
ObjectClosureCareful* cl) {
guarantee(false, "NYI");
return bottom();
}
bool Space::obj_is_alive(const HeapWord* p) const {
assert (block_is_obj(p), "The address should point to an object");
return true;