--- old/src/share/vm/services/classLoadingService.hpp 2017-03-08 11:11:55.170789316 -0500 +++ new/src/share/vm/services/classLoadingService.hpp 2017-03-08 11:11:54.871176023 -0500 @@ -141,8 +141,10 @@ // KlassHandle h(_current_thread, l); // _loaded_classes->append(h); // } - KlassHandle h(_current_thread, k); - _loaded_classes->append(h); + if (k->is_instance_klass()) { + KlassHandle h(_current_thread, k); + _loaded_classes->append(h); + } } };