comparison src/os/windows/vm/os_windows.cpp @ 4803:d7e3846464d0

7071311: Decoder enhancement Summary: Made decoder thread-safe Reviewed-by: coleenp, kamg
author zgu
date Tue, 17 Jan 2012 13:08:52 -0500
parents 2b3acb34791f
children de268c8a8075 aa3d708d67c4
comparison
equal deleted inserted replaced
4801:4f3ce9284781 4803:d7e3846464d0
1389 } 1389 }
1390 } 1390 }
1391 1391
1392 bool os::dll_address_to_function_name(address addr, char *buf, 1392 bool os::dll_address_to_function_name(address addr, char *buf,
1393 int buflen, int *offset) { 1393 int buflen, int *offset) {
1394 if (Decoder::decode(addr, buf, buflen, offset) == Decoder::no_error) { 1394 if (Decoder::decode(addr, buf, buflen, offset)) {
1395 return true; 1395 return true;
1396 } 1396 }
1397 if (offset != NULL) *offset = -1; 1397 if (offset != NULL) *offset = -1;
1398 if (buf != NULL) buf[0] = '\0'; 1398 if (buf != NULL) buf[0] = '\0';
1399 return false; 1399 return false;