hotspot/src/share/vm/code/dependencies.cpp
changeset 235 735f15bdea80
parent 203 2e348cc9121a
parent 227 1d53148d4a4c
child 670 ddf3e9583f2f
--- a/hotspot/src/share/vm/code/dependencies.cpp	Thu Mar 13 14:17:48 2008 -0700
+++ b/hotspot/src/share/vm/code/dependencies.cpp	Thu Mar 20 09:17:30 2008 -0500
@@ -1499,9 +1499,12 @@
     // fall through:
     _change_type = Change_new_sub;
   case Change_new_sub:
-    _klass = instanceKlass::cast(_klass)->super();
-    if (_klass != NULL) {
-      return true;
+    // 6598190: brackets workaround Sun Studio C++ compiler bug 6629277
+    {
+      _klass = instanceKlass::cast(_klass)->super();
+      if (_klass != NULL) {
+        return true;
+      }
     }
     // else set up _ti_limit and fall through:
     _ti_limit = (_ti_base == NULL) ? 0 : _ti_base->length();