mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
Merge
This commit is contained in:
commit
a0861106e3
1535 changed files with 3601 additions and 18634 deletions
|
@ -360,6 +360,22 @@ void decode_env::print_address(address adr) {
|
|||
}
|
||||
}
|
||||
|
||||
if (_nm == NULL) {
|
||||
// Don't do this for native methods, as the function name will be printed in
|
||||
// nmethod::reloc_string_for().
|
||||
ResourceMark rm;
|
||||
const int buflen = 1024;
|
||||
char* buf = NEW_RESOURCE_ARRAY(char, buflen);
|
||||
int offset;
|
||||
if (os::dll_address_to_function_name(adr, buf, buflen, &offset)) {
|
||||
st->print(PTR_FORMAT " = %s", p2i(adr), buf);
|
||||
if (offset != 0) {
|
||||
st->print("+%d", offset);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Fall through to a simple (hexadecimal) numeral.
|
||||
st->print(PTR_FORMAT, p2i(adr));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue