# HG changeset patch # User sbohne # Date 1201809410 18000 # Node ID 1d53148d4a4c160587198387466aa9a7e0c6511e # Parent e4a3ef4b26654c25efa50f096c39ccc4fac55254 6598190: JPRT tests fail when run with -XX:+CheckUnhandledOops Summary: Work around Sun Studio C++ compiler bug 6629277 in dependencies.cpp Reviewed-by: kamg, sgoldman, pbk diff -r e4a3ef4b2665 -r 1d53148d4a4c hotspot/src/share/vm/code/dependencies.cpp --- a/hotspot/src/share/vm/code/dependencies.cpp Thu Jan 31 09:41:34 2008 -0500 +++ b/hotspot/src/share/vm/code/dependencies.cpp Thu Jan 31 14:56:50 2008 -0500 @@ -1491,9 +1491,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();