8029178: Parallel class loading test anonymous-simple gets SIGSEGV in Metaspace::contains

Metaspace::contains cannot look at purged metaspaces while CMS concurrently deallocates them.

Reviewed-by: mgerdin, sspitsyn, jmasa
This commit is contained in:
Coleen Phillimore 2014-01-07 13:26:56 -05:00
parent 3e537df17c
commit 469f290817
10 changed files with 43 additions and 54 deletions

View file

@ -376,8 +376,6 @@ void Klass::append_to_sibling_list() {
}
bool Klass::is_loader_alive(BoolObjectClosure* is_alive) {
assert(ClassLoaderDataGraph::contains((address)this), "is in the metaspace");
#ifdef ASSERT
// The class is alive iff the class loader is alive.
oop loader = class_loader();