mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8192061: Clean up allocation.inline.hpp includes
Reviewed-by: eosterlund, coleenp
This commit is contained in:
parent
177b24b7d7
commit
58dd5210ec
61 changed files with 409 additions and 256 deletions
|
@ -1029,6 +1029,26 @@ void MethodHandles::flush_dependent_nmethods(Handle call_site, Handle target) {
|
|||
}
|
||||
}
|
||||
|
||||
void MethodHandles::trace_method_handle_interpreter_entry(MacroAssembler* _masm, vmIntrinsics::ID iid) {
|
||||
if (TraceMethodHandles) {
|
||||
const char* name = vmIntrinsics::name_at(iid);
|
||||
if (*name == '_') name += 1;
|
||||
const size_t len = strlen(name) + 50;
|
||||
char* qname = NEW_C_HEAP_ARRAY(char, len, mtInternal);
|
||||
const char* suffix = "";
|
||||
if (is_signature_polymorphic(iid)) {
|
||||
if (is_signature_polymorphic_static(iid))
|
||||
suffix = "/static";
|
||||
else
|
||||
suffix = "/private";
|
||||
}
|
||||
jio_snprintf(qname, len, "MethodHandle::interpreter_entry::%s%s", name, suffix);
|
||||
trace_method_handle(_masm, qname);
|
||||
// Note: Don't free the allocated char array because it's used
|
||||
// during runtime.
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Here are the native methods in java.lang.invoke.MethodHandleNatives
|
||||
// They are the private interface between this JVM and the HotSpot-specific
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue