/*
* 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 "memory/classify.hpp"
"unknown",
"instance",
"instanceRef",
"objArray",
"symbol",
"klass",
"instanceKlass",
"method",
"constMethod",
"methodData",
"constantPool",
"constantPoolCache",
"typeArray",
"compiledICHolder"
};
}
if (count) {
}
if (obj->is_instance()) {
if (k->oop_is_instanceRef()) {
} else {
}
} else if (obj->is_typeArray()) {
} else if (obj->is_objArray()) {
if (k->oop_is_instance()) {
} else {
type = klass_type;
}
type = method_type;
} else if (obj->is_constMethod()) {
} else if (obj->is_methodData()) {
} else if (obj->is_constantPool()) {
} else if (obj->is_constantPoolCache()) {
} else if (obj->is_compiledICHolder()) {
} else {
}
return type;
}
for (int i = 0; i < number_object_types; ++i) {
object_count[i] = 0;
object_size[i] = 0;
}
total_object_count = 0;
total_object_size = 0;
}
int i = classify_object(obj, true);
++object_count[i];
object_size[i] += size;
}
int num_objects = 0;
for (int i = 0; i < number_object_types; ++i) {
if (object_count[i] != 0) {
(float)object_size[i]/(float)object_count[i]);
}
num_objects += object_count[i];
size_objects += object_size[i];
}
return total_object_size;
}
if (k->alloc_count() > 0) {
const char *name;
name = "_klassKlassObj";
name = "_arrayKlassKlassObj";
name = "_objArrayKlassKlassObj";
name = "_typeArrayKlassKlassObj";
name = "_instanceKlassKlassObj";
name = "_methodKlassObj";
name = "_constMethodKlassObj";
name = "_constantPoolKlassObj";
name = "_constantPoolCacheKlassObj";
name = "_compiledICHolderKlassObj";
name = "_systemObjArrayKlassObj";
} else {
name = "[unnamed]";
}
} else {
name = k->external_name();
}
}
total_instances += k->alloc_count();
}
}
}
total_instances = 0;
}