Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalRuntime.hpp @ 18614:c307546c7b0a
made initialization of the Graal class loader and well known Graal classes lazy
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 04 Dec 2014 13:42:56 +0100 |
parents | ab47ef2f2207 |
children | 9c2396ef02db |
comparison
equal
deleted
inserted
replaced
18613:8c3a85077f84 | 18614:c307546c7b0a |
---|---|
124 * Checks that _generated_sources_sha1 equals GeneratedSourcesSha1.value. | 124 * Checks that _generated_sources_sha1 equals GeneratedSourcesSha1.value. |
125 */ | 125 */ |
126 static void check_generated_sources_sha1(TRAPS); | 126 static void check_generated_sources_sha1(TRAPS); |
127 | 127 |
128 public: | 128 public: |
129 | |
130 /** | |
131 * Ensures that the Graal class loader is initialized and the well known Graal classes are loaded. | |
132 */ | |
133 static void ensure_graal_class_loader_is_initialized(); | |
129 | 134 |
130 static void initialize_natives(JNIEnv *env, jclass c2vmClass); | 135 static void initialize_natives(JNIEnv *env, jclass c2vmClass); |
131 | 136 |
132 static bool is_HotSpotGraalRuntime_initialized() { return _HotSpotGraalRuntime_initialized; } | 137 static bool is_HotSpotGraalRuntime_initialized() { return _HotSpotGraalRuntime_initialized; } |
133 | 138 |
197 | 202 |
198 /** | 203 /** |
199 * Loads a given Graal class and aborts the VM if it fails. | 204 * Loads a given Graal class and aborts the VM if it fails. |
200 */ | 205 */ |
201 static Klass* load_required_class(Symbol* name); | 206 static Klass* load_required_class(Symbol* name); |
202 | |
203 /** | |
204 * Creates a separate class loader for classes in graal.jar and graal-truffle.jar. | |
205 */ | |
206 static oop compute_graal_class_loader(TRAPS); | |
207 | 207 |
208 static BufferBlob* initialize_buffer_blob(); | 208 static BufferBlob* initialize_buffer_blob(); |
209 | 209 |
210 /** | 210 /** |
211 * Checks that all Graal specific VM options presented by the launcher are recognized | 211 * Checks that all Graal specific VM options presented by the launcher are recognized |