comparison src/share/vm/memory/heapInspection.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 2cbc8f3011a0
children ac9cb1d5a202
comparison
equal deleted inserted replaced
12315:c1fbf21c7397 12316:190899198332
148 }; 148 };
149 149
150 HEAP_INSPECTION_COLUMNS_DO(DECLARE_KLASS_SIZE_STATS_FIELD) 150 HEAP_INSPECTION_COLUMNS_DO(DECLARE_KLASS_SIZE_STATS_FIELD)
151 151
152 static int count(oop x) { 152 static int count(oop x) {
153 return (HeapWordSize * ((x) ? (x)->size() : 0)); 153 return (HeapWordSize * (((x) != NULL) ? (x)->size() : 0));
154 } 154 }
155 155
156 static int count_array(objArrayOop x) { 156 static int count_array(objArrayOop x) {
157 return (HeapWordSize * ((x) ? (x)->size() : 0)); 157 return (HeapWordSize * (((x) != NULL) ? (x)->size() : 0));
158 } 158 }
159 159
160 template <class T> static int count(T* x) { 160 template <class T> static int count(T* x) {
161 return (HeapWordSize * ((x) ? (x)->size() : 0)); 161 return (HeapWordSize * ((x) ? (x)->size() : 0));
162 } 162 }