Mercurial > hg > graal-compiler
comparison src/share/vm/compiler/compileBroker.cpp @ 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 | 9bb816169777 |
children | 98592ae4b1fa |
comparison
equal
deleted
inserted
replaced
18302:fb289eb7243d | 18303:ab47ef2f2207 |
---|---|
1208 } | 1208 } |
1209 | 1209 |
1210 // Don't allow blocking compilation requests to Graal | 1210 // Don't allow blocking compilation requests to Graal |
1211 // if Graal itself is not yet initialized | 1211 // if Graal itself is not yet initialized |
1212 if (!GraalRuntime::is_HotSpotGraalRuntime_initialized() && compiler(comp_level)->is_graal()) { | 1212 if (!GraalRuntime::is_HotSpotGraalRuntime_initialized() && compiler(comp_level)->is_graal()) { |
1213 blocking = false; | |
1214 } | |
1215 | |
1216 // Don't allow blocking compilation requests if we are in GraalRuntime::shutdown | |
1217 // to avoid deadlock between compiler thread(s) and threads run at shutdown | |
1218 // such as the DestroyJavaVM thread. | |
1219 if (GraalRuntime::shutdown_called()) { | |
1213 blocking = false; | 1220 blocking = false; |
1214 } | 1221 } |
1215 } | 1222 } |
1216 // Don't allow blocking compiles | 1223 // Don't allow blocking compiles |
1217 #endif | 1224 #endif |