Mercurial > hg > truffle
comparison src/share/vm/runtime/java.cpp @ 2928:1e13559b112d
small fix in deopt stub, more branch prediction code
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 09 Jun 2011 20:25:38 +0200 |
parents | b78b4ae0757c |
children | 2823897b2da2 |
comparison
equal
deleted
inserted
replaced
2927:f9c6d9bc4fbc | 2928:1e13559b112d |
---|---|
417 #define BEFORE_EXIT_NOT_RUN 0 | 417 #define BEFORE_EXIT_NOT_RUN 0 |
418 #define BEFORE_EXIT_RUNNING 1 | 418 #define BEFORE_EXIT_RUNNING 1 |
419 #define BEFORE_EXIT_DONE 2 | 419 #define BEFORE_EXIT_DONE 2 |
420 static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN; | 420 static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN; |
421 | 421 |
422 if (UseGraal) { | 422 // if (UseGraal) { |
423 GraalCompiler::instance()->exit(); | 423 // GraalCompiler::instance()->exit(); |
424 } | 424 // } |
425 | 425 |
426 // Note: don't use a Mutex to guard the entire before_exit(), as | 426 // Note: don't use a Mutex to guard the entire before_exit(), as |
427 // JVMTI post_thread_end_event and post_vm_death_event will run native code. | 427 // JVMTI post_thread_end_event and post_vm_death_event will run native code. |
428 // A CAS or OSMutex would work just fine but then we need to manipulate | 428 // A CAS or OSMutex would work just fine but then we need to manipulate |
429 // thread state for Safepoint. Here we use Monitor wait() and notify_all() | 429 // thread state for Safepoint. Here we use Monitor wait() and notify_all() |