Mercurial > hg > truffle
comparison src/share/vm/prims/methodHandles.cpp @ 3837:43f9d800f276
7066339: Tiered: policy should make consistent decisions about osr levels
Summary: Added feedback disabling flag to common(), fixed handling of TieredStopAtLevel.
Reviewed-by: kvn, never
author | iveresov |
---|---|
date | Wed, 20 Jul 2011 18:04:17 -0700 |
parents | ddd894528dbc |
children | c26de9aef2ed |
comparison
equal
deleted
inserted
replaced
3808:341a57af9b0a | 3837:43f9d800f276 |
---|---|
1014 CompilationPolicy::must_be_compiled(m)) | 1014 CompilationPolicy::must_be_compiled(m)) |
1015 && !instanceKlass::cast(m->method_holder())->is_not_initialized() | 1015 && !instanceKlass::cast(m->method_holder())->is_not_initialized() |
1016 && CompilationPolicy::can_be_compiled(m)) { | 1016 && CompilationPolicy::can_be_compiled(m)) { |
1017 // Force compilation | 1017 // Force compilation |
1018 CompileBroker::compile_method(m, InvocationEntryBci, | 1018 CompileBroker::compile_method(m, InvocationEntryBci, |
1019 CompLevel_initial_compile, | 1019 CompilationPolicy::policy()->initial_compile_level(), |
1020 methodHandle(), 0, "MethodHandleNatives.getTarget", | 1020 methodHandle(), 0, "MethodHandleNatives.getTarget", |
1021 CHECK_NULL); | 1021 CHECK_NULL); |
1022 } | 1022 } |
1023 // Now wrap m in a DirectMethodHandle. | 1023 // Now wrap m in a DirectMethodHandle. |
1024 instanceKlassHandle dmh_klass(THREAD, SystemDictionary::DirectMethodHandle_klass()); | 1024 instanceKlassHandle dmh_klass(THREAD, SystemDictionary::DirectMethodHandle_klass()); |
2711 CompilationPolicy::must_be_compiled(m)) | 2711 CompilationPolicy::must_be_compiled(m)) |
2712 && !instanceKlass::cast(m->method_holder())->is_not_initialized() | 2712 && !instanceKlass::cast(m->method_holder())->is_not_initialized() |
2713 && CompilationPolicy::can_be_compiled(m)) { | 2713 && CompilationPolicy::can_be_compiled(m)) { |
2714 // Force compilation | 2714 // Force compilation |
2715 CompileBroker::compile_method(m, InvocationEntryBci, | 2715 CompileBroker::compile_method(m, InvocationEntryBci, |
2716 CompLevel_initial_compile, | 2716 CompilationPolicy::policy()->initial_compile_level(), |
2717 methodHandle(), 0, "StressMethodHandleWalk", | 2717 methodHandle(), 0, "StressMethodHandleWalk", |
2718 CHECK); | 2718 CHECK); |
2719 } | 2719 } |
2720 } | 2720 } |
2721 } | 2721 } |