mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8258059: Clean up MethodData::profile_unsafe
Reviewed-by: roland, chegar
This commit is contained in:
parent
b5592c05ad
commit
ff75ad515b
1 changed files with 6 additions and 6 deletions
|
@ -1586,12 +1586,12 @@ bool MethodData::profile_jsr292(const methodHandle& m, int bci) {
|
||||||
bool MethodData::profile_unsafe(const methodHandle& m, int bci) {
|
bool MethodData::profile_unsafe(const methodHandle& m, int bci) {
|
||||||
Bytecode_invoke inv(m , bci);
|
Bytecode_invoke inv(m , bci);
|
||||||
if (inv.is_invokevirtual()) {
|
if (inv.is_invokevirtual()) {
|
||||||
if (inv.klass() == vmSymbols::jdk_internal_misc_Unsafe() ||
|
Symbol* klass = inv.klass();
|
||||||
inv.klass() == vmSymbols::sun_misc_Unsafe() ||
|
if (klass == vmSymbols::jdk_internal_misc_Unsafe() ||
|
||||||
inv.klass() == vmSymbols::jdk_internal_misc_ScopedMemoryAccess()) {
|
klass == vmSymbols::sun_misc_Unsafe() ||
|
||||||
ResourceMark rm;
|
klass == vmSymbols::jdk_internal_misc_ScopedMemoryAccess()) {
|
||||||
char* name = inv.name()->as_C_string();
|
Symbol* name = inv.name();
|
||||||
if (!strncmp(name, "get", 3) || !strncmp(name, "put", 3)) {
|
if (name->starts_with("get") || name->starts_with("put")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue