Mercurial > hg > truffle
comparison src/share/vm/graal/graalRuntime.hpp @ 18303:ab47ef2f2207
disable blocking compilation requests once GraalRuntime::shutdown has been called
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 07 Nov 2014 12:35:58 +0100 |
parents | bcb1e5c232d8 |
children | c307546c7b0a |
comparison
equal
deleted
inserted
replaced
18302:fb289eb7243d | 18303:ab47ef2f2207 |
---|---|
34 static jobject _HotSpotGraalRuntime_instance; | 34 static jobject _HotSpotGraalRuntime_instance; |
35 static bool _HotSpotGraalRuntime_initialized; | 35 static bool _HotSpotGraalRuntime_initialized; |
36 static address _external_deopt_i2c_entry; | 36 static address _external_deopt_i2c_entry; |
37 static const char* _generated_sources_sha1; | 37 static const char* _generated_sources_sha1; |
38 | 38 |
39 static bool _shutdown_called; | |
40 | |
39 /** | 41 /** |
40 * Reads the OptionValue object from a specified static field. | 42 * Reads the OptionValue object from a specified static field. |
41 * | 43 * |
42 * @throws LinkageError if the field could not be resolved | 44 * @throws LinkageError if the field could not be resolved |
43 */ | 45 */ |
138 get_HotSpotGraalRuntime(); | 140 get_HotSpotGraalRuntime(); |
139 return _HotSpotGraalRuntime_instance; | 141 return _HotSpotGraalRuntime_instance; |
140 } | 142 } |
141 | 143 |
142 static void shutdown(); | 144 static void shutdown(); |
145 | |
146 static bool shutdown_called() { | |
147 return _shutdown_called; | |
148 } | |
143 | 149 |
144 /** | 150 /** |
145 * Given an interface representing a Graal service (i.e. sub-interface of | 151 * Given an interface representing a Graal service (i.e. sub-interface of |
146 * com.oracle.graal.api.runtime.Service), gets an array of objects, one per | 152 * com.oracle.graal.api.runtime.Service), gets an array of objects, one per |
147 * known implementation of the service. | 153 * known implementation of the service. |