Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 846:42d84bbbecf4
6859911: G1: assert(Heap_lock->owner() = NULL, "Should be owned on this thread's behalf")
Summary: The used() method assumes that the heap lock is held when it is called. However, when used() is called from print_on(), this is not the case.
Reviewed-by: ysr, jmasa
author | tonyp |
---|---|
date | Wed, 15 Jul 2009 12:22:59 -0400 |
parents | df6caf649ff7 |
children | 8b46c4d82093 |
comparison
equal
deleted
inserted
replaced
845:df6caf649ff7 | 846:42d84bbbecf4 |
---|---|
698 // Reserved (g1 only; super method includes perm), capacity and the used | 698 // Reserved (g1 only; super method includes perm), capacity and the used |
699 // portion in bytes. | 699 // portion in bytes. |
700 size_t g1_reserved_obj_bytes() { return _g1_reserved.byte_size(); } | 700 size_t g1_reserved_obj_bytes() { return _g1_reserved.byte_size(); } |
701 virtual size_t capacity() const; | 701 virtual size_t capacity() const; |
702 virtual size_t used() const; | 702 virtual size_t used() const; |
703 // This should be called when we're not holding the heap lock. The | |
704 // result might be a bit inaccurate. | |
705 size_t used_unlocked() const; | |
703 size_t recalculate_used() const; | 706 size_t recalculate_used() const; |
704 #ifndef PRODUCT | 707 #ifndef PRODUCT |
705 size_t recalculate_used_regions() const; | 708 size_t recalculate_used_regions() const; |
706 #endif // PRODUCT | 709 #endif // PRODUCT |
707 | 710 |