comparison src/share/vm/compiler/compileBroker.cpp @ 1931:48bbaead8b6c

Adjustments after merge with OpenJDK repository.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Tue, 30 Nov 2010 16:39:35 +0100
parents 2d26b0046e0d
children b7fb5f1e0747
comparison
equal deleted inserted replaced
1930:2d26b0046e0d 1931:48bbaead8b6c
529 529
530 jlong start = os::javaTimeMillis(); 530 jlong start = os::javaTimeMillis();
531 531
532 instanceKlass* klass = (instanceKlass*)SystemDictionary::Object_klass()->klass_part(); 532 instanceKlass* klass = (instanceKlass*)SystemDictionary::Object_klass()->klass_part();
533 methodOop method = klass->find_method(vmSymbols::object_initializer_name(), vmSymbols::void_method_signature()); 533 methodOop method = klass->find_method(vmSymbols::object_initializer_name(), vmSymbols::void_method_signature());
534 CompileBroker::compile_method(method, -1, method, 0, "initial compile of object initializer", THREAD); 534 CompileBroker::compile_method(method, -1, 0, method, 0, "initial compile of object initializer", THREAD);
535 if (HAS_PENDING_EXCEPTION) { 535 if (HAS_PENDING_EXCEPTION) {
536 CLEAR_PENDING_EXCEPTION; 536 CLEAR_PENDING_EXCEPTION;
537 fatal("error inserting object initializer into compile queue"); 537 fatal("error inserting object initializer into compile queue");
538 } 538 }
539 539
540 int z = 0; 540 int z = 0;
541 while (true) { 541 while (true) {
542 { 542 {
543 HandleMark hm; 543 HandleMark hm;
544 ResourceMark rm; 544 ResourceMark rm;
545 MutexLocker locker(_method_queue->lock(), Thread::current()); 545 MutexLocker locker(_c1_method_queue->lock(), Thread::current());
546 if (_method_queue->is_empty()) { 546 if (_c1_method_queue->is_empty()) {
547 MutexLocker mu(Threads_lock); // grab Threads_lock 547 MutexLocker mu(Threads_lock); // grab Threads_lock
548 JavaThread* current = Threads::first(); 548 JavaThread* current = Threads::first();
549 bool compiling = false; 549 bool compiling = false;
550 while (current != NULL) { 550 while (current != NULL) {
551 if (current->is_Compiler_thread()) { 551 if (current->is_Compiler_thread()) {
563 if (!compiling) { 563 if (!compiling) {
564 break; 564 break;
565 } 565 }
566 } 566 }
567 if (TraceC1X >= 4) { 567 if (TraceC1X >= 4) {
568 _method_queue->print(); 568 _c1_method_queue->print();
569 } 569 }
570 } 570 }
571 571
572 { 572 {
573 ThreadToNativeFromVM trans(JavaThread::current()); 573 ThreadToNativeFromVM trans(JavaThread::current());