Mercurial > hg > graal-compiler
comparison src/share/vm/memory/allocation.cpp @ 17663:40353abd7984
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 | 849eb7bfceac |
children | 752ba2e5f6d0 |
comparison
equal
deleted
inserted
replaced
17662:695a6aba51c3 | 17663:40353abd7984 |
---|---|
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 } |