Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciRuntime.hpp @ 22574:5a706439be63
Propagate exceptions up instead of aborting
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 17 Sep 2015 12:58:40 -0700 |
parents | b87d1bf3cd9a |
children | 569c82ebb96e |
comparison
equal
deleted
inserted
replaced
22573:be44a5efeaff | 22574:5a706439be63 |
---|---|
99 static bool is_HotSpotJVMCIRuntime_initialized() { return _HotSpotJVMCIRuntime_initialized; } | 99 static bool is_HotSpotJVMCIRuntime_initialized() { return _HotSpotJVMCIRuntime_initialized; } |
100 | 100 |
101 /** | 101 /** |
102 * Gets the singleton HotSpotJVMCIRuntime instance, initializing it if necessary | 102 * Gets the singleton HotSpotJVMCIRuntime instance, initializing it if necessary |
103 */ | 103 */ |
104 static Handle get_HotSpotJVMCIRuntime() { | 104 static Handle get_HotSpotJVMCIRuntime(TRAPS) { |
105 initialize_JVMCI(); | 105 initialize_JVMCI(CHECK_(Handle())); |
106 return Handle(JNIHandles::resolve_non_null(_HotSpotJVMCIRuntime_instance)); | 106 return Handle(JNIHandles::resolve_non_null(_HotSpotJVMCIRuntime_instance)); |
107 } | 107 } |
108 | 108 |
109 static jobject get_HotSpotJVMCIRuntime_jobject() { | 109 static jobject get_HotSpotJVMCIRuntime_jobject(TRAPS) { |
110 initialize_JVMCI(); | 110 initialize_JVMCI(CHECK_NULL); |
111 assert(_HotSpotJVMCIRuntime_initialized, "must be"); | 111 assert(_HotSpotJVMCIRuntime_initialized, "must be"); |
112 return _HotSpotJVMCIRuntime_instance; | 112 return _HotSpotJVMCIRuntime_instance; |
113 } | 113 } |
114 | 114 |
115 static Handle callStatic(const char* className, const char* methodName, const char* returnType, JavaCallArguments* args = NULL); | 115 static Handle callStatic(const char* className, const char* methodName, const char* returnType, JavaCallArguments* args, TRAPS); |
116 | 116 |
117 /** | 117 /** |
118 * Trigger initialization of HotSpotJVMCIRuntime through JVMCI.getRuntime() | 118 * Trigger initialization of HotSpotJVMCIRuntime through JVMCI.getRuntime() |
119 */ | 119 */ |
120 static void initialize_JVMCI(); | 120 static void initialize_JVMCI(TRAPS); |
121 | 121 |
122 /** | 122 /** |
123 * Explicitly initialize HotSpotJVMCIRuntime itself | 123 * Explicitly initialize HotSpotJVMCIRuntime itself |
124 */ | 124 */ |
125 static void initialize_HotSpotJVMCIRuntime(); | 125 static void initialize_HotSpotJVMCIRuntime(TRAPS); |
126 | 126 |
127 static void metadata_do(void f(Metadata*)); | 127 static void metadata_do(void f(Metadata*)); |
128 | 128 |
129 static void shutdown(); | 129 static void shutdown(); |
130 | 130 |