Mercurial > hg > truffle
comparison src/share/vm/memory/metaspace.cpp @ 12110:4c84d351cca9
8007074: SIGSEGV at ParMarkBitMap::verify_clear()
Summary: Replace the broken large pages implementation on Linux. New flag: -XX:+UseTransparentHugePages - Linux specific flag to turn on transparent huge page hinting with madvise(..., MAP_HUGETLB). Changed behavior: -XX:+UseLargePages - tries to use -XX:+UseTransparentHugePages before trying other large pages implementations (on Linux). Changed behavior: -XX:+UseHugeTLBFS - Use upfront allocation of Large Pages instead of using the broken implementation to dynamically committing large pages. Changed behavior: -XX:LargePageSizeInBytes - Turned off the ability to use this flag on Linux and provides warning to user if set to a value different than the OS chosen large page size. Changed behavior: Setting no large page size - Now defaults to use -XX:UseTransparentHugePages if the OS supports it. Previously, -XX:+UseHugeTLBFS was chosen if the OS was configured to use large pages.
Reviewed-by: tschatzl, dcubed, brutisso
author | stefank |
---|---|
date | Fri, 16 Aug 2013 13:22:32 +0200 |
parents | 1a8fb39bdbc4 |
children | 7944aba7ba41 |
comparison
equal
deleted
inserted
replaced
12108:badf4244ceae | 12110:4c84d351cca9 |
---|---|
343 | 343 |
344 void print_on(outputStream* st) const; | 344 void print_on(outputStream* st) const; |
345 }; | 345 }; |
346 | 346 |
347 // byte_size is the size of the associated virtualspace. | 347 // byte_size is the size of the associated virtualspace. |
348 VirtualSpaceNode::VirtualSpaceNode(size_t byte_size) : _top(NULL), _next(NULL), _rs(0), _container_count(0) { | 348 VirtualSpaceNode::VirtualSpaceNode(size_t byte_size) : _top(NULL), _next(NULL), _rs(), _container_count(0) { |
349 // align up to vm allocation granularity | 349 // align up to vm allocation granularity |
350 byte_size = align_size_up(byte_size, os::vm_allocation_granularity()); | 350 byte_size = align_size_up(byte_size, os::vm_allocation_granularity()); |
351 | 351 |
352 // This allocates memory with mmap. For DumpSharedspaces, try to reserve | 352 // This allocates memory with mmap. For DumpSharedspaces, try to reserve |
353 // configurable address, generally at the top of the Java heap so other | 353 // configurable address, generally at the top of the Java heap so other |