mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8035746: Add missing Klass::oop_is_instanceClassLoader() function
Reviewed-by: mgerdin, coleenp
This commit is contained in:
parent
ba2326e19f
commit
959bdfb211
5 changed files with 35 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue