mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8233913: Remove implicit conversion from Method* to methodHandle
Fix call sites to use existing THREAD local or pass down THREAD local for shallower callsites. Make linkResolver methods return Method* for caller to handleize if needed. Reviewed-by: iklam, thartmann, hseigel
This commit is contained in:
parent
25d3cf9216
commit
ed21b56269
82 changed files with 610 additions and 572 deletions
|
@ -67,7 +67,7 @@ void JVMCICompiler::bootstrap(TRAPS) {
|
|||
// Initialize compile queue with a selected set of methods.
|
||||
int len = objectMethods->length();
|
||||
for (int i = 0; i < len; i++) {
|
||||
methodHandle mh = objectMethods->at(i);
|
||||
methodHandle mh(THREAD, objectMethods->at(i));
|
||||
if (!mh->is_native() && !mh->is_static() && !mh->is_initializer()) {
|
||||
ResourceMark rm;
|
||||
int hot_count = 10; // TODO: what's the appropriate value?
|
||||
|
@ -100,7 +100,7 @@ void JVMCICompiler::bootstrap(TRAPS) {
|
|||
JVMCI::compiler_runtime()->bootstrap_finished(CHECK);
|
||||
}
|
||||
|
||||
bool JVMCICompiler::force_comp_at_level_simple(Method *method) {
|
||||
bool JVMCICompiler::force_comp_at_level_simple(const methodHandle& method) {
|
||||
if (UseJVMCINativeLibrary) {
|
||||
// This mechanism exists to force compilation of a JVMCI compiler by C1
|
||||
// to reduces the compilation time spent on the JVMCI compiler itself. In
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue