Mercurial > hg > graal-compiler
diff src/share/vm/memory/metachunk.hpp @ 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 | 28df60a5badf |
children | 4ca6dc0799b6 |
line wrap: on
line diff
--- a/src/share/vm/memory/metachunk.hpp Mon Feb 10 10:34:52 2014 +0100 +++ b/src/share/vm/memory/metachunk.hpp Tue Jan 07 13:26:56 2014 -0500 @@ -143,6 +143,8 @@ void set_is_tagged_free(bool v) { _is_tagged_free = v; } #endif + bool contains(const void* ptr) { return bottom() <= ptr && ptr < _top; } + NOT_PRODUCT(void mangle();) void print_on(outputStream* st) const;