Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompilerToVM.cpp @ 6277:dddcdb7ae209
removed klass::is_leaf_class() and replaced it's usage in Graal (the only usage) with an explicit test to ignore interface classes
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 22 Aug 2012 11:00:31 +0200 |
parents | 957c266d8bc5 |
children | 2691e320d37c |
comparison
equal
deleted
inserted
replaced
6276:03c4c25ae726 | 6277:dddcdb7ae209 |
---|---|
638 JNIEXPORT jobject JNICALL Java_com_oracle_graal_hotspot_bridge_CompilerToVMImpl_JavaType_1uniqueConcreteSubtype(JNIEnv *, jobject, jobject klass) { | 638 JNIEXPORT jobject JNICALL Java_com_oracle_graal_hotspot_bridge_CompilerToVMImpl_JavaType_1uniqueConcreteSubtype(JNIEnv *, jobject, jobject klass) { |
639 TRACE_graal_3("CompilerToVM::JavaType_uniqueConcreteSubtype"); | 639 TRACE_graal_3("CompilerToVM::JavaType_uniqueConcreteSubtype"); |
640 VM_ENTRY_MARK; | 640 VM_ENTRY_MARK; |
641 KlassHandle klass_handle(java_lang_Class::as_klassOop(HotSpotResolvedJavaType::javaMirror(klass))); | 641 KlassHandle klass_handle(java_lang_Class::as_klassOop(HotSpotResolvedJavaType::javaMirror(klass))); |
642 Klass *up_cast = klass_handle->up_cast_abstract(); | 642 Klass *up_cast = klass_handle->up_cast_abstract(); |
643 if (up_cast->is_leaf_class()) { | 643 if (!up_cast->is_interface() && up_cast->subklass() == NULL) { |
644 return JNIHandles::make_local(GraalCompiler::get_JavaType(up_cast, THREAD)()); | 644 return JNIHandles::make_local(GraalCompiler::get_JavaType(up_cast, THREAD)()); |
645 } | 645 } |
646 return NULL; | 646 return NULL; |
647 } | 647 } |
648 | 648 |