src/share/vm/services/management.cpp

Print this page

        

*** 891,900 **** --- 891,906 ---- if (!has_undefined_max_size) { total_max += u.max_size(); } } } + if (has_undefined_init_size) { + total_init = -1; + } + if (has_undefined_max_size) { + total_max = -1; + } MemoryUsage usage((heap ? InitialHeapSize : total_init), total_used, total_committed, (heap ? Universe::heap()->max_capacity() : total_max));