comparison src/share/vm/runtime/virtualspace.hpp @ 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 b294421fa3c5
children c4c768305a8f
comparison
equal deleted inserted replaced
12108:badf4244ceae 12110:4c84d351cca9
51 // Create protection page at the beginning of the space. 51 // Create protection page at the beginning of the space.
52 void protect_noaccess_prefix(const size_t size); 52 void protect_noaccess_prefix(const size_t size);
53 53
54 public: 54 public:
55 // Constructor 55 // Constructor
56 ReservedSpace();
56 ReservedSpace(size_t size); 57 ReservedSpace(size_t size);
57 ReservedSpace(size_t size, size_t alignment, bool large, 58 ReservedSpace(size_t size, size_t alignment, bool large,
58 char* requested_address = NULL, 59 char* requested_address = NULL,
59 const size_t noaccess_prefix = 0); 60 const size_t noaccess_prefix = 0);
60 ReservedSpace(size_t size, size_t alignment, bool large, bool executable); 61 ReservedSpace(size_t size, size_t alignment, bool large, bool executable);