Mercurial > hg > graal-jvmci-8
diff src/share/vm/memory/metaspaceShared.cpp @ 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 | 716c64bda5ba |
children | 6c3f47d964f3 |
line wrap: on
line diff
--- a/src/share/vm/memory/metaspaceShared.cpp Fri Nov 09 22:22:53 2012 -0800 +++ b/src/share/vm/memory/metaspaceShared.cpp Mon Nov 12 16:15:05 2012 -0500 @@ -431,7 +431,7 @@ } static void link_shared_classes(Klass* obj, TRAPS) { - Klass* k = Klass::cast(obj); + Klass* k = obj; if (k->oop_is_instance()) { InstanceKlass* ik = (InstanceKlass*) k; // Link the class to cause the bytecodes to be rewritten and the