Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/klass.cpp @ 14492:7f0e0366ec81
8035746: Add missing Klass::oop_is_instanceClassLoader() function
Reviewed-by: mgerdin, coleenp
author | stefank |
---|---|
date | Thu, 27 Feb 2014 10:36:50 +0100 |
parents | 48314d596a04 |
children | d8041d695d19 |
comparison
equal
deleted
inserted
replaced
14491:301df27023d4 | 14492:7f0e0366ec81 |
---|---|
690 assert(i >= 0 && i < method_count, "index out of bounds"); | 690 assert(i >= 0 && i < method_count, "index out of bounds"); |
691 return true; | 691 return true; |
692 } | 692 } |
693 | 693 |
694 #endif | 694 #endif |
695 | |
696 /////////////// Unit tests /////////////// | |
697 | |
698 #ifndef PRODUCT | |
699 | |
700 class TestKlass { | |
701 public: | |
702 static void test_oop_is_instanceClassLoader() { | |
703 assert(SystemDictionary::ClassLoader_klass()->oop_is_instanceClassLoader(), "assert"); | |
704 assert(!SystemDictionary::String_klass()->oop_is_instanceClassLoader(), "assert"); | |
705 } | |
706 }; | |
707 | |
708 void TestKlass_test() { | |
709 TestKlass::test_oop_is_instanceClassLoader(); | |
710 } | |
711 | |
712 #endif |