Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/java.cpp @ 4319:3c21eee8ab4d
Add installMethodCallback() to HotSpotRuntime.
Re-add tail call node and opcode.
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Tue, 24 Jan 2012 19:17:28 +0100 |
parents | 04b9a2566eec |
children | 723df37192d6 35ca3ade314d |
comparison
equal
deleted
inserted
replaced
4315:4c223446c28e | 4319:3c21eee8ab4d |
---|---|
423 #define BEFORE_EXIT_NOT_RUN 0 | 423 #define BEFORE_EXIT_NOT_RUN 0 |
424 #define BEFORE_EXIT_RUNNING 1 | 424 #define BEFORE_EXIT_RUNNING 1 |
425 #define BEFORE_EXIT_DONE 2 | 425 #define BEFORE_EXIT_DONE 2 |
426 static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN; | 426 static jint volatile _before_exit_status = BEFORE_EXIT_NOT_RUN; |
427 | 427 |
428 #ifdef GRAAL | |
428 if (UseGraal) { | 429 if (UseGraal) { |
429 GraalCompiler::instance()->exit(); | 430 GraalCompiler::instance()->exit(); |
430 } | 431 } |
432 #endif | |
431 | 433 |
432 // Note: don't use a Mutex to guard the entire before_exit(), as | 434 // Note: don't use a Mutex to guard the entire before_exit(), as |
433 // JVMTI post_thread_end_event and post_vm_death_event will run native code. | 435 // JVMTI post_thread_end_event and post_vm_death_event will run native code. |
434 // A CAS or OSMutex would work just fine but then we need to manipulate | 436 // A CAS or OSMutex would work just fine but then we need to manipulate |
435 // thread state for Safepoint. Here we use Monitor wait() and notify_all() | 437 // thread state for Safepoint. Here we use Monitor wait() and notify_all() |