Mercurial > hg > truffle
comparison src/share/vm/memory/allocation.cpp @ 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 | 752ba2e5f6d0 |
children | 78bbf4d43a14 |
comparison
equal
deleted
inserted
replaced
17934:366c198c896d | 17935:7384f6a12fc1 |
---|---|
73 bool MetaspaceObj::is_shared() const { | 73 bool MetaspaceObj::is_shared() const { |
74 return MetaspaceShared::is_in_shared_space(this); | 74 return MetaspaceShared::is_in_shared_space(this); |
75 } | 75 } |
76 | 76 |
77 bool MetaspaceObj::is_metaspace_object() const { | 77 bool MetaspaceObj::is_metaspace_object() const { |
78 return ClassLoaderDataGraph::contains((void*)this); | 78 return Metaspace::contains((void*)this); |
79 } | 79 } |
80 | 80 |
81 void MetaspaceObj::print_address_on(outputStream* st) const { | 81 void MetaspaceObj::print_address_on(outputStream* st) const { |
82 st->print(" {"INTPTR_FORMAT"}", this); | 82 st->print(" {"INTPTR_FORMAT"}", this); |
83 } | 83 } |