7071311: Decoder enhancement

Made decoder thread-safe

Reviewed-by: coleenp, kamg
This commit is contained in:
Zhengyu Gu 2012-01-17 13:08:52 -05:00
parent 8efd785f67
commit 43bb0877fc
20 changed files with 471 additions and 275 deletions

View file

@ -1391,7 +1391,7 @@ bool os::dll_address_to_library_name(address addr, char* buf,
bool os::dll_address_to_function_name(address addr, char *buf,
int buflen, int *offset) {
if (Decoder::decode(addr, buf, buflen, offset) == Decoder::no_error) {
if (Decoder::decode(addr, buf, buflen, offset)) {
return true;
}
if (offset != NULL) *offset = -1;