8211328: Different declaration and definition of ClassLoaderData::classes_do() leads to build failures
Reviewed-by: dcubed, coleenp
--- a/src/hotspot/share/classfile/classLoaderData.hpp Mon Oct 01 13:05:51 2018 -0400
+++ b/src/hotspot/share/classfile/classLoaderData.hpp Mon Oct 01 19:08:14 2018 +0200
@@ -183,7 +183,7 @@
bool keep_alive() const { return _keep_alive > 0; }
oop holder_phantom() const;
- void classes_do(void f(Klass*));
+ void classes_do(void f(Klass* const));
void loaded_classes_do(KlassClosure* klass_closure);
void classes_do(void f(InstanceKlass*));
void methods_do(void f(Method*));