/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "classfile/systemDictionary.hpp"
#include "services/memReporter.hpp"
#include "services/memPtrArray.hpp"
#include "services/memTracker.hpp"
switch(scale) {
case K: return "KB";
case M: return "MB";
case G: return "GB";
}
return NULL;
}
}
}
}
}
if (rgn->is_reserved_region()) {
} else {
}
}
}
// walk malloc callsites
while (malloc_callsite != NULL) {
}
// walk virtual memory callsite
while (vm_callsite != NULL) {
}
}
bool summary_only) {
diff_in_current_scale(total_committed, (prev.total_committed_amount() + prev.total_malloc_amount())));
}
}
}
}
// walk malloc callsites
if (prev_malloc_callsite == NULL) {
// this is a new callsite
} else if (cur_malloc_callsite == NULL) {
// this callsite is already gone
0, 0,
} else {
// this is a new callsite
// this callsite is already gone
0, 0,
} else {
// the same callsite
}
}
}
// walk virtual memory callsite
// this is a new callsite
// this callsite is already gone
} else { // the same callsite
}
}
}
}
}
}
}
}
}
}
/**
* report a summary of memory type
*/
// we report mtThreadStack under mtThread category
if (type == mtThreadStack) {
"Just check");
} else {
}
if (total_reserved > 0) {
}
if (malloc_amt > 0) {
} else {
}
}
if (reserved_amt > 0) {
}
if (arena_amt > 0) {
}
}
}
}
}
}
int offset;
}
}
void BaselineTTYOutputer::committed_memory_region(address base, address end, size_t size, address pc) {
int offset;
}
}
}
}
}
if (malloc_amt > 0) {
int offset;
if (pc == 0) {
} else {
}
}
}
if (reserved_amt > 0) {
int offset;
if (pc == 0) {
} else {
}
}
}
}
if (type == mtThreadStack) {
cur_arena_amt == 0, "Just check");
} else {
// nothing to report in this category
if (total_reserved == 0) {
return;
}
// category summary
if (diff_reserved != 0) {
}
if (total_committed_diff != 0) {
}
// special cases
if (_num_of_classes_diff != 0) {
}
// thread count
if (_num_of_threads_diff != 0) {
} else {
}
if (_thread_stack_reserved_diff != 0) {
}
if (_thread_stack_committed_diff != 0) {
}
}
// malloc'd memory
if (cur_malloc_amt > 0) {
if (malloc_diff != 0) {
}
if (malloc_count_diff) {
}
}
}
// mmap'd memory
if (cur_reserved_amt > 0) {
if (reserved_diff != 0) {
}
if (committed_diff != 0) {
}
}
// arena memory
if (cur_arena_amt > 0) {
if (arena_diff != 0) {
}
if (arena_count_diff != 0) {
}
}
}
}
int malloc_diff, int malloc_count_diff) {
if (malloc_diff != 0) {
int offset;
if (pc == 0) {
} else {
} else {
}
}
if (malloc_diff != 0) {
}
if (malloc_count_diff != 0) {
}
}
}
int reserved_diff, int committed_diff) {
if (reserved_diff != 0 || committed_diff != 0) {
int offset;
if (pc == 0) {
} else {
} else {
}
}
if (reserved_diff != 0) {
}
if (committed_diff != 0) {
}
}
}