8035746: Add missing Klass::oop_is_instanceClassLoader() function

Reviewed-by: mgerdin, coleenp
This commit is contained in:
Stefan Karlsson 2014-02-27 10:36:50 +01:00
parent ba2326e19f
commit 959bdfb211
5 changed files with 35 additions and 12 deletions

View file

@ -692,3 +692,21 @@ bool Klass::verify_itable_index(int i) {
}
#endif
/////////////// Unit tests ///////////////
#ifndef PRODUCT
class TestKlass {
public:
static void test_oop_is_instanceClassLoader() {
assert(SystemDictionary::ClassLoader_klass()->oop_is_instanceClassLoader(), "assert");
assert(!SystemDictionary::String_klass()->oop_is_instanceClassLoader(), "assert");
}
};
void TestKlass_test() {
TestKlass::test_oop_is_instanceClassLoader();
}
#endif