1.1 --- a/src/share/vm/memory/heapInspection.hpp Wed Sep 25 17:47:51 2013 +0200 1.2 +++ b/src/share/vm/memory/heapInspection.hpp Thu Sep 26 10:25:02 2013 -0400 1.3 @@ -150,11 +150,11 @@ 1.4 HEAP_INSPECTION_COLUMNS_DO(DECLARE_KLASS_SIZE_STATS_FIELD) 1.5 1.6 static int count(oop x) { 1.7 - return (HeapWordSize * ((x) ? (x)->size() : 0)); 1.8 + return (HeapWordSize * (((x) != NULL) ? (x)->size() : 0)); 1.9 } 1.10 1.11 static int count_array(objArrayOop x) { 1.12 - return (HeapWordSize * ((x) ? (x)->size() : 0)); 1.13 + return (HeapWordSize * (((x) != NULL) ? (x)->size() : 0)); 1.14 } 1.15 1.16 template <class T> static int count(T* x) {