mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8038212: Method::is_valid_method() check has performance regression impact for stackwalking
Only prune metaspace virtual spaces at safepoint so walking them is safe outside a safepoint. Reviewed-by: mgerdin, mgronlun, hseigel, stefank
This commit is contained in:
parent
cc3c656cf1
commit
c336175c94
13 changed files with 84 additions and 72 deletions
|
@ -1385,7 +1385,7 @@ inline intptr_t p2i(const void * p) {
|
|||
// All C++ compilers that we know of have the vtbl pointer in the first
|
||||
// word. If there are exceptions, this function needs to be made compiler
|
||||
// specific.
|
||||
static inline void* dereference_vptr(void* addr) {
|
||||
static inline void* dereference_vptr(const void* addr) {
|
||||
return *(void**)addr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue