Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 12316:190899198332
7195622: CheckUnhandledOops has limited usefulness now
Summary: Enable CHECK_UNHANDLED_OOPS in fastdebug builds across all supported platforms.
Reviewed-by: coleenp, hseigel, dholmes, stefank, twisti, ihse, rdurbin
Contributed-by: lois.foltan@oracle.com
author | hseigel |
---|---|
date | Thu, 26 Sep 2013 10:25:02 -0400 |
parents | 40136aa2cdb1 |
children | 798522662fcd |
comparison
equal
deleted
inserted
replaced
12315:c1fbf21c7397 | 12316:190899198332 |
---|---|
701 bool in_cset_fast_test(oop obj) { | 701 bool in_cset_fast_test(oop obj) { |
702 assert(_in_cset_fast_test != NULL, "sanity"); | 702 assert(_in_cset_fast_test != NULL, "sanity"); |
703 if (_g1_committed.contains((HeapWord*) obj)) { | 703 if (_g1_committed.contains((HeapWord*) obj)) { |
704 // no need to subtract the bottom of the heap from obj, | 704 // no need to subtract the bottom of the heap from obj, |
705 // _in_cset_fast_test is biased | 705 // _in_cset_fast_test is biased |
706 uintx index = (uintx) obj >> HeapRegion::LogOfHRGrainBytes; | 706 uintx index = cast_from_oop<uintx>(obj) >> HeapRegion::LogOfHRGrainBytes; |
707 bool ret = _in_cset_fast_test[index]; | 707 bool ret = _in_cset_fast_test[index]; |
708 // let's make sure the result is consistent with what the slower | 708 // let's make sure the result is consistent with what the slower |
709 // test returns | 709 // test returns |
710 assert( ret || !obj_in_cs(obj), "sanity"); | 710 assert( ret || !obj_in_cs(obj), "sanity"); |
711 assert(!ret || obj_in_cs(obj), "sanity"); | 711 assert(!ret || obj_in_cs(obj), "sanity"); |