Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompiler.cpp @ 3576:c94966c5fb41
Only shut down the compiler if it was initialized.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 12 Sep 2011 21:20:33 +0200 |
parents | b0d192f86f34 |
children | 7604c69a6301 |
comparison
equal
deleted
inserted
replaced
3574:4e3bcc322fdc | 3576:c94966c5fb41 |
---|---|
117 VmIds::cleanupLocalObjects(); | 117 VmIds::cleanupLocalObjects(); |
118 TRACE_graal_2("GraalCompiler::compile_method exit"); | 118 TRACE_graal_2("GraalCompiler::compile_method exit"); |
119 } | 119 } |
120 | 120 |
121 void GraalCompiler::exit() { | 121 void GraalCompiler::exit() { |
122 VMExits::shutdownCompiler(); | 122 if (_initialized) { |
123 VMExits::shutdownCompiler(); | |
124 } | |
123 } | 125 } |
124 | 126 |
125 // Print compilation timers and statistics | 127 // Print compilation timers and statistics |
126 void GraalCompiler::print_timers() { | 128 void GraalCompiler::print_timers() { |
127 TRACE_graal_1("GraalCompiler::print_timers"); | 129 TRACE_graal_1("GraalCompiler::print_timers"); |