comparison src/share/vm/memory/space.cpp @ 20267:ff1e37e7eb83

8038405: Clean up some virtual fucntions in Space class hierarchy Summary: Get rid of some duplicated implementations and change nonsense implementations to pure virtuals Reviewed-by: stefank, jmasa
author mgerdin
date Wed, 12 Mar 2014 15:25:35 +0100
parents 6c523f5d5440
children 1526a938e670
comparison
equal deleted inserted replaced
20266:6c523f5d5440 20267:ff1e37e7eb83
304 set_top(bottom()); 304 set_top(bottom());
305 set_saved_mark(); 305 set_saved_mark();
306 CompactibleSpace::clear(mangle_space); 306 CompactibleSpace::clear(mangle_space);
307 } 307 }
308 308
309 bool ContiguousSpace::is_in(const void* p) const {
310 return _bottom <= p && p < _top;
311 }
312
313 bool ContiguousSpace::is_free_block(const HeapWord* p) const { 309 bool ContiguousSpace::is_free_block(const HeapWord* p) const {
314 return p >= _top; 310 return p >= _top;
315 } 311 }
316 312
317 void OffsetTableContigSpace::clear(bool mangle_space) { 313 void OffsetTableContigSpace::clear(bool mangle_space) {