comparison src/share/vm/compiler/compileBroker.cpp @ 1406:35069ca331f2

Hooked C1XCompiler class into the system. Two new flags: -XX:+UseC1X makes sure that the C1X compiler is used instead of C1 -XX:TraceC1X=0 sets the trace level for C1X (value between 0=no output and 5=verbose)
author Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
date Tue, 11 May 2010 18:19:17 +0200
parents a2ea687fdc7c
children b30a2cd5e3a2
comparison
equal deleted inserted replaced
1405:a197210cb4ae 1406:35069ca331f2
540 void CompileBroker::compilation_init() { 540 void CompileBroker::compilation_init() {
541 _last_method_compiled[0] = '\0'; 541 _last_method_compiled[0] = '\0';
542 542
543 // Set the interface to the current compiler(s). 543 // Set the interface to the current compiler(s).
544 #ifdef COMPILER1 544 #ifdef COMPILER1
545 _compilers[0] = new Compiler(); 545 if (UseC1X) {
546 _compilers[0] = new C1XCompiler();
547 } else {
548 _compilers[0] = new Compiler();
549 }
546 #ifndef COMPILER2 550 #ifndef COMPILER2
547 _compilers[1] = _compilers[0]; 551 _compilers[1] = _compilers[0];
548 #endif 552 #endif
549 #endif // COMPILER1 553 #endif // COMPILER1
550 554
1525 { 1529 {
1526 MutexLocker locker(Compile_lock, thread); 1530 MutexLocker locker(Compile_lock, thread);
1527 system_dictionary_modification_counter = SystemDictionary::number_of_modifications(); 1531 system_dictionary_modification_counter = SystemDictionary::number_of_modifications();
1528 } 1532 }
1529 1533
1530 NoHandleMark nhm; 1534 // (tw) Check if we may do this?
1535 //NoHandleMark nhm;
1531 ThreadToNativeFromVM ttn(thread); 1536 ThreadToNativeFromVM ttn(thread);
1532 1537
1533 ciEnv ci_env(task, system_dictionary_modification_counter); 1538 ciEnv ci_env(task, system_dictionary_modification_counter);
1534 if (should_break) { 1539 if (should_break) {
1535 ci_env.set_break_at_compile(true); 1540 ci_env.set_break_at_compile(true);