Mercurial > hg > truffle
diff src/share/vm/services/serviceUtil.hpp @ 6983:070d523b96a7
8001471: Klass::cast() does nothing
Summary: Remove function Klass::cast() and calls to it.
Reviewed-by: dholmes, coleenp
author | hseigel |
---|---|
date | Mon, 12 Nov 2012 16:15:05 -0500 |
parents | da91efe96a93 |
children |
line wrap: on
line diff
--- a/src/share/vm/services/serviceUtil.hpp Fri Nov 09 22:22:53 2012 -0800 +++ b/src/share/vm/services/serviceUtil.hpp Mon Nov 12 16:15:05 2012 -0500 @@ -57,14 +57,13 @@ if (k->is_klass()) { // if it's a class for an object, an object array, or // primitive (type) array then it's visible. - Klass* klass = k; - if (Klass::cast(klass)->oop_is_instance()) { + if (k->oop_is_instance()) { return true; } - if (Klass::cast(klass)->oop_is_objArray()) { + if (k->oop_is_objArray()) { return true; } - if (Klass::cast(klass)->oop_is_typeArray()) { + if (k->oop_is_typeArray()) { return true; } }