mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +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
|
@ -47,7 +47,7 @@
|
|||
#include "memory/universe.hpp"
|
||||
#include "oops/annotations.hpp"
|
||||
#include "oops/constantPool.inline.hpp"
|
||||
#include "oops/fieldStreams.hpp"
|
||||
#include "oops/fieldStreams.inline.hpp"
|
||||
#include "oops/instanceKlass.hpp"
|
||||
#include "oops/instanceMirrorKlass.hpp"
|
||||
#include "oops/klass.inline.hpp"
|
||||
|
@ -332,7 +332,7 @@ void ClassFileParser::parse_constant_pool_entries(const ClassFileStream* const s
|
|||
hashValues[names_count++] = hash;
|
||||
if (names_count == SymbolTable::symbol_alloc_batch_size) {
|
||||
SymbolTable::new_symbols(_loader_data,
|
||||
cp,
|
||||
constantPoolHandle(THREAD, cp),
|
||||
names_count,
|
||||
names,
|
||||
lengths,
|
||||
|
@ -369,7 +369,7 @@ void ClassFileParser::parse_constant_pool_entries(const ClassFileStream* const s
|
|||
// Allocate the remaining symbols
|
||||
if (names_count > 0) {
|
||||
SymbolTable::new_symbols(_loader_data,
|
||||
cp,
|
||||
constantPoolHandle(THREAD, cp),
|
||||
names_count,
|
||||
names,
|
||||
lengths,
|
||||
|
@ -2870,7 +2870,7 @@ Method* ClassFileParser::parse_method(const ClassFileStream* const cfs,
|
|||
}
|
||||
|
||||
if (parsed_annotations.has_any_annotations())
|
||||
parsed_annotations.apply_to(m);
|
||||
parsed_annotations.apply_to(methodHandle(THREAD, m));
|
||||
|
||||
// Copy annotations
|
||||
copy_method_annotations(m->constMethod(),
|
||||
|
@ -3753,7 +3753,7 @@ static unsigned int compute_oop_map_count(const InstanceKlass* super,
|
|||
#ifndef PRODUCT
|
||||
static void print_field_layout(const Symbol* name,
|
||||
Array<u2>* fields,
|
||||
const constantPoolHandle& cp,
|
||||
ConstantPool* cp,
|
||||
int instance_size,
|
||||
int instance_fields_start,
|
||||
int instance_fields_end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue