6740923: NUMA allocator: Ensure the progress of adaptive chunk resizing

Treat a chuck where the allocation has failed as fully used.

Reviewed-by: ysr
This commit is contained in:
Igor Veresov 2008-09-27 00:33:13 -07:00
parent fe4cab6eeb
commit 4204f82a1a
4 changed files with 51 additions and 6 deletions

View file

@ -50,7 +50,8 @@ class ImmutableSpace: public CHeapObj {
size_t capacity_in_bytes() const { return capacity_in_words() * HeapWordSize; }
// Size computations. Sizes are in heapwords.
size_t capacity_in_words() const { return pointer_delta(end(), bottom()); }
size_t capacity_in_words() const { return pointer_delta(end(), bottom()); }
virtual size_t capacity_in_words(Thread*) const { return capacity_in_words(); }
// Iteration.
virtual void oop_iterate(OopClosure* cl);