Mercurial > hg > graal-compiler
comparison src/share/vm/memory/allocation.cpp @ 14190:ce86c36b8921
8029178: Parallel class loading test anonymous-simple gets SIGSEGV in Metaspace::contains
Summary: Metaspace::contains cannot look at purged metaspaces while CMS concurrently deallocates them.
Reviewed-by: mgerdin, sspitsyn, jmasa
author | coleenp |
---|---|
date | Tue, 07 Jan 2014 13:26:56 -0500 |
parents | 9758d9f36299 |
children | db1ff6781ab4 |
comparison
equal
deleted
inserted
replaced
14189:1a899ea6b7ed | 14190:ce86c36b8921 |
---|---|
69 | 69 |
70 bool MetaspaceObj::is_shared() const { | 70 bool MetaspaceObj::is_shared() const { |
71 return MetaspaceShared::is_in_shared_space(this); | 71 return MetaspaceShared::is_in_shared_space(this); |
72 } | 72 } |
73 | 73 |
74 | |
75 bool MetaspaceObj::is_metaspace_object() const { | 74 bool MetaspaceObj::is_metaspace_object() const { |
76 return Metaspace::contains((void*)this); | 75 return ClassLoaderDataGraph::contains((void*)this); |
77 } | 76 } |
78 | 77 |
79 void MetaspaceObj::print_address_on(outputStream* st) const { | 78 void MetaspaceObj::print_address_on(outputStream* st) const { |
80 st->print(" {"INTPTR_FORMAT"}", this); | 79 st->print(" {"INTPTR_FORMAT"}", this); |
81 } | 80 } |