8149789: SIGSEGV in CompileTask::print

Print tasks from active compile threads requires safepoint

Reviewed-by: kvn
This commit is contained in:
Nils Eliasson 2016-02-25 10:44:19 +01:00
parent e09bb29c2d
commit 607365df56
4 changed files with 18 additions and 2 deletions

View file

@ -469,7 +469,6 @@ CompileQueue* CompileBroker::compile_queue(int comp_level) {
void CompileBroker::print_compile_queues(outputStream* st) {
st->print_cr("Current compiles: ");
MutexLocker locker(MethodCompileQueue_lock);
MutexLocker locker2(Threads_lock);
char buf[2000];
int buflen = sizeof(buf);