diff --git a/src/share/vm/memory/space.hpp b/src/share/vm/memory/space.hpp index 33b56cf065129420744c8f2a82880c95aed6f09f..f81c293a4bf3088ce5b45a9edbb24bd87a46bbf3 100644 --- a/src/share/vm/memory/space.hpp +++ b/src/share/vm/memory/space.hpp @@ -880,10 +880,17 @@ class ContiguousSpace: public CompactibleSpace { void object_iterate_mem(MemRegion mr, UpwardsObjectClosure* cl); // iterates on objects up to the safe limit HeapWord* object_iterate_careful(ObjectClosureCareful* cl); - inline HeapWord* concurrent_iteration_safe_limit(); + HeapWord* concurrent_iteration_safe_limit() { + assert(_concurrent_iteration_safe_limit <= top(), + "_concurrent_iteration_safe_limit update missed"); + return _concurrent_iteration_safe_limit; + } // changes the safe limit, all objects from bottom() to the new // limit should be properly initialized - inline void set_concurrent_iteration_safe_limit(HeapWord* new_limit); + void set_concurrent_iteration_safe_limit(HeapWord* new_limit) { + assert(new_limit <= top(), "uninitialized objects in the safe range"); + _concurrent_iteration_safe_limit = new_limit; + } #ifndef SERIALGC // In support of parallel oop_iterate. diff --git a/src/share/vm/memory/space.inline.hpp b/src/share/vm/memory/space.inline.hpp index 7d62476a69a4ffc8e4f5082c19ca1cd639555bb9..07e6127230c6f29a162f0dc789199776837d2e6f 100644 --- a/src/share/vm/memory/space.inline.hpp +++ b/src/share/vm/memory/space.inline.hpp @@ -67,17 +67,4 @@ OffsetTableContigSpace::block_start_const(const void* p) const { return _offsets.block_start(p); } -inline HeapWord* ContiguousSpace::concurrent_iteration_safe_limit() -{ - assert(_concurrent_iteration_safe_limit <= top(), - "_concurrent_iteration_safe_limit update missed"); - return _concurrent_iteration_safe_limit; -} - -inline void ContiguousSpace::set_concurrent_iteration_safe_limit(HeapWord* new_limit) -{ - assert(new_limit <= top(), "uninitialized objects in the safe range"); - _concurrent_iteration_safe_limit = new_limit; -} - #endif // SHARE_VM_MEMORY_SPACE_INLINE_HPP