提交 3d56efdf 编写于 作者: S sla

7178846: IterateThroughHeap: heap_iteration_callback passes a negative size

Summary: Missing cast caused integer overflow
Reviewed-by: rbackman, dholmes
上级 a1a0b016
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册