Mercurial > hg > truffle
comparison src/share/vm/code/dependencies.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 | ac9cb1d5a202 |
children | 3e2b76368121 51e1bb81df86 |
comparison
equal
deleted
inserted
replaced
17662:695a6aba51c3 | 17663:40353abd7984 |
---|---|
653 if (_code != NULL) { | 653 if (_code != NULL) { |
654 o = _code->metadata_at(i); | 654 o = _code->metadata_at(i); |
655 } else { | 655 } else { |
656 o = _deps->oop_recorder()->metadata_at(i); | 656 o = _deps->oop_recorder()->metadata_at(i); |
657 } | 657 } |
658 assert(o == NULL || o->is_metaspace_object(), | |
659 err_msg("Should be metadata " PTR_FORMAT, o)); | |
660 return o; | 658 return o; |
661 } | 659 } |
662 | 660 |
663 inline oop Dependencies::DepStream::recorded_oop_at(int i) { | 661 inline oop Dependencies::DepStream::recorded_oop_at(int i) { |
664 return (_code != NULL) | 662 return (_code != NULL) |