Mercurial > hg > graal-compiler
diff src/share/vm/memory/filemap.cpp @ 11056:221df7e37535
8016075: Win32 crash with CDS enabled and small heap size
Summary: Fixed MetaspaceShared::is_in_shared_space
Reviewed-by: coleenp, hseigel
author | iklam |
---|---|
date | Thu, 27 Jun 2013 10:03:21 -0700 |
parents | 868d87ed63c8 |
children | 740e263c80c6 |
line wrap: on
line diff
--- a/src/share/vm/memory/filemap.cpp Wed Jun 26 11:00:11 2013 +0200 +++ b/src/share/vm/memory/filemap.cpp Thu Jun 27 10:03:21 2013 -0700 @@ -549,3 +549,13 @@ return false; } + +void FileMapInfo::print_shared_spaces() { + gclog_or_tty->print_cr("Shared Spaces:"); + for (int i = 0; i < MetaspaceShared::n_regions; i++) { + struct FileMapInfo::FileMapHeader::space_info* si = &_header._space[i]; + gclog_or_tty->print(" %s " INTPTR_FORMAT "-" INTPTR_FORMAT, + shared_region_name[i], + si->_base, si->_base + si->_used); + } +}