comparison src/share/vm/utilities/globalDefinitions.hpp @ 17935:7384f6a12fc1

8038212: Method::is_valid_method() check has performance regression impact for stackwalking Summary: Only prune metaspace virtual spaces at safepoint so walking them is safe outside a safepoint. Reviewed-by: mgerdin, mgronlun, hseigel, stefank
author coleenp
date Thu, 15 May 2014 18:23:26 -0400
parents 62c54fcc0a35
children 78bbf4d43a14
comparison
equal deleted inserted replaced
17934:366c198c896d 17935:7384f6a12fc1
1347 1347
1348 // Dereference vptr 1348 // Dereference vptr
1349 // All C++ compilers that we know of have the vtbl pointer in the first 1349 // All C++ compilers that we know of have the vtbl pointer in the first
1350 // word. If there are exceptions, this function needs to be made compiler 1350 // word. If there are exceptions, this function needs to be made compiler
1351 // specific. 1351 // specific.
1352 static inline void* dereference_vptr(void* addr) { 1352 static inline void* dereference_vptr(const void* addr) {
1353 return *(void**)addr; 1353 return *(void**)addr;
1354 } 1354 }
1355 1355
1356 1356
1357 #ifndef PRODUCT 1357 #ifndef PRODUCT