Mercurial > hg > graal-compiler
comparison src/share/vm/prims/jvmtiTagMap.cpp @ 6171:588f559105c1
7178846: IterateThroughHeap: heap_iteration_callback passes a negative size
Summary: Missing cast caused integer overflow
Reviewed-by: rbackman, dholmes
author | sla |
---|---|
date | Mon, 25 Jun 2012 14:34:35 +0200 |
parents | 2b150750d53d |
children | d2a62e0f25eb |
comparison
equal
deleted
inserted
replaced
6170:d8a240abb23a | 6171:588f559105c1 |
---|---|
583 | 583 |
584 // for Classes the klassOop is tagged | 584 // for Classes the klassOop is tagged |
585 _o = klassOop_if_java_lang_Class(o); | 585 _o = klassOop_if_java_lang_Class(o); |
586 | 586 |
587 // object size | 587 // object size |
588 _obj_size = _o->size() * wordSize; | 588 _obj_size = (jlong)_o->size() * wordSize; |
589 | 589 |
590 // record the context | 590 // record the context |
591 _tag_map = tag_map; | 591 _tag_map = tag_map; |
592 _hashmap = tag_map->hashmap(); | 592 _hashmap = tag_map->hashmap(); |
593 _entry = _hashmap->find(_o); | 593 _entry = _hashmap->find(_o); |