changeset 2263:2cd0180da6e1

7032306: Fastdebug build failure on Solaris with SS11 compilers Reviewed-by: kvn, iveresov
author never
date Tue, 29 Mar 2011 22:05:21 -0700
parents b1c22848507b
children fe1dbd98e18f
files src/share/vm/oops/instanceKlass.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/instanceKlass.cpp	Tue Mar 29 17:35:34 2011 -0700
+++ b/src/share/vm/oops/instanceKlass.cpp	Tue Mar 29 22:05:21 2011 -0700
@@ -2337,7 +2337,7 @@
     st->print_cr(BULLET"fake entry for oop_size: %d", java_lang_Class::oop_size(obj));
     st->print_cr(BULLET"fake entry for static_oop_field_count: %d", java_lang_Class::static_oop_field_count(obj));
     klassOop real_klass = java_lang_Class::as_klassOop(obj);
-    if (real_klass && real_klass->klass_part()->oop_is_instance()) {
+    if (real_klass != NULL && real_klass->klass_part()->oop_is_instance()) {
       instanceKlass::cast(real_klass)->do_local_static_fields(&print_field);
     }
   } else if (as_klassOop() == SystemDictionary::MethodType_klass()) {