mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6862576: vmIntrinsics needs cleanup in order to support JSR 292 intrinsics
Remove useless lazy evaluation of intrinsics; add LAST_COMPILER_INLINE to help categorize them Reviewed-by: kvn
This commit is contained in:
parent
7229ae9b95
commit
6515225d49
8 changed files with 75 additions and 58 deletions
|
@ -273,6 +273,7 @@ Rewriter::Rewriter(instanceKlassHandle klass, TRAPS)
|
|||
compute_index_maps();
|
||||
|
||||
if (RegisterFinalizersAtInit && _klass->name() == vmSymbols::java_lang_Object()) {
|
||||
bool did_rewrite = false;
|
||||
int i = _methods->length();
|
||||
while (i-- > 0) {
|
||||
methodOop method = (methodOop)_methods->obj_at(i);
|
||||
|
@ -281,9 +282,11 @@ Rewriter::Rewriter(instanceKlassHandle klass, TRAPS)
|
|||
// object for finalization if needed.
|
||||
methodHandle m(THREAD, method);
|
||||
rewrite_Object_init(m, CHECK);
|
||||
did_rewrite = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
assert(did_rewrite, "must find Object::<init> to rewrite it");
|
||||
}
|
||||
|
||||
// rewrite methods, in two passes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue