Mercurial > hg > graal-compiler
diff src/share/vm/runtime/java.cpp @ 13174:b00553202ec2
add NULL check so that -Xint option works again
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Mon, 25 Nov 2013 15:31:18 -0800 |
parents | 096c224171c4 |
children | d8041d695d19 |
line wrap: on
line diff
--- a/src/share/vm/runtime/java.cpp Mon Nov 25 15:26:08 2013 -0800 +++ b/src/share/vm/runtime/java.cpp Mon Nov 25 15:31:18 2013 -0800 @@ -462,7 +462,9 @@ static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN; #ifdef GRAAL - GraalCompiler::instance()->exit(); + if (GraalCompiler::instance() != NULL) { + GraalCompiler::instance()->exit(); + } #endif // Note: don't use a Mutex to guard the entire before_exit(), as