hotspot/src/share/vm/memory/universe.cpp
// It's the caller's repsonsibility to ensure glitch-freedom
// (if required).
void Universe::update_heap_info_at_gc() {
{- -------------------------------------------
(1) _heap_capacity_at_last_gc フィールド, 及び _heap_used_at_last_gc フィールドの値を
現在のヒープの最大長(capacity), 及び使用量(used)に置き換えるだけ.
---------------------------------------- -}
_heap_capacity_at_last_gc = heap()->capacity();
_heap_used_at_last_gc = heap()->used();
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.