7178846: IterateThroughHeap: heap_iteration_callback passes a negative size
Missing cast caused integer overflow Reviewed-by: rbackman, dholmes
This commit is contained in:
parent
e742ae2157
commit
4ea5b30610
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user