Mercurial > hg > truffle
comparison src/share/vm/classfile/systemDictionary.cpp @ 1407:09e7826ecf01
Can now call to Java code from the VM.
Need to specify a JAR file with the classes from the Maxine subprojects C1X, CRI, and HotSpotVM in the bootclasspath.
See HotSpotVM/README.txt in the Maxine sources for details.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Tue, 11 May 2010 19:24:14 +0200 |
parents | 09ac706c2623 |
children | b30a2cd5e3a2 |
comparison
equal
deleted
inserted
replaced
1406:35069ca331f2 | 1407:09e7826ecf01 |
---|---|
159 | 159 |
160 | 160 |
161 // Forwards to resolve_instance_class_or_null | 161 // Forwards to resolve_instance_class_or_null |
162 | 162 |
163 klassOop SystemDictionary::resolve_or_null(symbolHandle class_name, Handle class_loader, Handle protection_domain, TRAPS) { | 163 klassOop SystemDictionary::resolve_or_null(symbolHandle class_name, Handle class_loader, Handle protection_domain, TRAPS) { |
164 assert(!THREAD->is_Compiler_thread(), "Can not load classes with the Compiler thread"); | 164 // (tw) May we do this? |
165 // assert(!THREAD->is_Compiler_thread(), "Can not load classes with the Compiler thread"); | |
165 if (FieldType::is_array(class_name())) { | 166 if (FieldType::is_array(class_name())) { |
166 return resolve_array_class_or_null(class_name, class_loader, protection_domain, CHECK_NULL); | 167 return resolve_array_class_or_null(class_name, class_loader, protection_domain, CHECK_NULL); |
167 } else { | 168 } else { |
168 return resolve_instance_class_or_null(class_name, class_loader, protection_domain, CHECK_NULL); | 169 return resolve_instance_class_or_null(class_name, class_loader, protection_domain, CHECK_NULL); |
169 } | 170 } |