7178846: IterateThroughHeap: heap_iteration_callback passes a negative size

Missing cast caused integer overflow

Reviewed-by: rbackman, dholmes
This commit is contained in:
Staffan Larsen 2012-06-25 14:34:35 +02:00
parent e742ae2157
commit 4ea5b30610

View File

@ -585,7 +585,7 @@ class CallbackWrapper : public StackObj {
_o = klassOop_if_java_lang_Class(o);
// object size
_obj_size = _o->size() * wordSize;
_obj_size = (jlong)_o->size() * wordSize;
// record the context
_tag_map = tag_map;