comparison src/share/vm/graal/graalRuntime.hpp @ 16395:ad431bf0de07

added support to load classes from graal.jar with a separate class loader
author Doug Simon <doug.simon@oracle.com>
date Thu, 03 Jul 2014 16:30:28 +0200
parents d6ffc6164830
children 78ddecd6255f
comparison
equal deleted inserted replaced
16394:0dd27c6472d7 16395:ad431bf0de07
143 if (HAS_PENDING_EXCEPTION) { \ 143 if (HAS_PENDING_EXCEPTION) { \
144 GraalRuntime::abort_on_pending_exception(PENDING_EXCEPTION, error_message); \ 144 GraalRuntime::abort_on_pending_exception(PENDING_EXCEPTION, error_message); \
145 } \ 145 } \
146 } while (0); 146 } while (0);
147 147
148 /**
149 * Same as SystemDictionary::resolve_or_null but uses the Graal loader.
150 */
151 static Klass* resolve_or_null(Symbol* name, TRAPS);
152
153 /**
154 * Same as SystemDictionary::resolve_or_fail but uses the Graal loader.
155 */
156 static Klass* resolve_or_fail(Symbol* name, TRAPS);
157
158 /**
159 * Loads a given Graal class and aborts the VM if it fails.
160 */
148 static Klass* load_required_class(Symbol* name); 161 static Klass* load_required_class(Symbol* name);
162
163 /**
164 * Creates a separate class loader for classes in graal.jar.
165 */
166 static oop compute_graal_class_loader(TRAPS);
149 167
150 static BufferBlob* initialize_buffer_blob(); 168 static BufferBlob* initialize_buffer_blob();
151 169
152 /** 170 /**
153 * Checks that all Graal specific VM options presented by the launcher are recognized 171 * Checks that all Graal specific VM options presented by the launcher are recognized