< prev index next >

src/share/vm/memory/metaspace.cpp

Print this page
rev 8039 : [mq]: container_count

*** 344,354 **** uintx container_count() { return _container_count; } void inc_container_count(); void dec_container_count(); #ifdef ASSERT ! uint container_count_slow(); void verify_container_count(); #endif // used and capacity in this single entry in the list size_t used_words_in_vs() const; --- 344,354 ---- uintx container_count() { return _container_count; } void inc_container_count(); void dec_container_count(); #ifdef ASSERT ! uintx container_count_slow(); void verify_container_count(); #endif // used and capacity in this single entry in the list size_t used_words_in_vs() const;
*** 461,472 **** chunk = (Metachunk*) next; } } #ifdef ASSERT ! uint VirtualSpaceNode::container_count_slow() { ! uint count = 0; Metachunk* chunk = first_chunk(); Metachunk* invalid_chunk = (Metachunk*) top(); while (chunk < invalid_chunk ) { MetaWord* next = ((MetaWord*)chunk) + chunk->word_size(); // Don't count the chunks on the free lists. Those are --- 461,472 ---- chunk = (Metachunk*) next; } } #ifdef ASSERT ! uintx VirtualSpaceNode::container_count_slow() { ! uintx count = 0; Metachunk* chunk = first_chunk(); Metachunk* invalid_chunk = (Metachunk*) top(); while (chunk < invalid_chunk ) { MetaWord* next = ((MetaWord*)chunk) + chunk->word_size(); // Don't count the chunks on the free lists. Those are
< prev index next >