mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7167437: Can't build on linux without precompiled headers
Reviewed-by: brutisso, mgerdin
This commit is contained in:
parent
ffd4d39144
commit
efb4e7d77d
2 changed files with 9 additions and 15 deletions
|
@ -880,10 +880,17 @@ class ContiguousSpace: public CompactibleSpace {
|
||||||
void object_iterate_mem(MemRegion mr, UpwardsObjectClosure* cl);
|
void object_iterate_mem(MemRegion mr, UpwardsObjectClosure* cl);
|
||||||
// iterates on objects up to the safe limit
|
// iterates on objects up to the safe limit
|
||||||
HeapWord* object_iterate_careful(ObjectClosureCareful* cl);
|
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
|
// changes the safe limit, all objects from bottom() to the new
|
||||||
// limit should be properly initialized
|
// 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
|
#ifndef SERIALGC
|
||||||
// In support of parallel oop_iterate.
|
// In support of parallel oop_iterate.
|
||||||
|
|
|
@ -67,17 +67,4 @@ OffsetTableContigSpace::block_start_const(const void* p) const {
|
||||||
return _offsets.block_start(p);
|
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
|
#endif // SHARE_VM_MEMORY_SPACE_INLINE_HPP
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue