comparison src/share/vm/services/memTracker.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 5f7a4367c787
children 833b0f92429a
comparison
equal deleted inserted replaced
12108:badf4244ceae 12110:4c84d351cca9
85 MEMFLAGS flags, address pc = 0, Thread* thread = NULL) { } 85 MEMFLAGS flags, address pc = 0, Thread* thread = NULL) { }
86 static inline void record_virtual_memory_reserve_and_commit(address addr, size_t size, 86 static inline void record_virtual_memory_reserve_and_commit(address addr, size_t size,
87 MEMFLAGS flags, address pc = 0, Thread* thread = NULL) { } 87 MEMFLAGS flags, address pc = 0, Thread* thread = NULL) { }
88 static inline void record_virtual_memory_commit(address addr, size_t size, 88 static inline void record_virtual_memory_commit(address addr, size_t size,
89 address pc = 0, Thread* thread = NULL) { } 89 address pc = 0, Thread* thread = NULL) { }
90 static inline void record_virtual_memory_release(address addr, size_t size,
91 Thread* thread = NULL) { }
90 static inline void record_virtual_memory_type(address base, MEMFLAGS flags, 92 static inline void record_virtual_memory_type(address base, MEMFLAGS flags,
91 Thread* thread = NULL) { } 93 Thread* thread = NULL) { }
92 static inline Tracker get_realloc_tracker() { return _tkr; } 94 static inline Tracker get_realloc_tracker() { return _tkr; }
93 static inline Tracker get_virtual_memory_uncommit_tracker() { return _tkr; } 95 static inline Tracker get_virtual_memory_uncommit_tracker() { return _tkr; }
94 static inline Tracker get_virtual_memory_release_tracker() { return _tkr; } 96 static inline Tracker get_virtual_memory_release_tracker() { return _tkr; }
370 MEMFLAGS flags, address pc, Thread* thread = NULL) { 372 MEMFLAGS flags, address pc, Thread* thread = NULL) {
371 Tracker tkr(Tracker::ReserveAndCommit, thread); 373 Tracker tkr(Tracker::ReserveAndCommit, thread);
372 tkr.record(addr, size, flags, pc); 374 tkr.record(addr, size, flags, pc);
373 } 375 }
374 376
377 static inline void record_virtual_memory_release(address addr, size_t size,
378 Thread* thread = NULL) {
379 if (is_on()) {
380 Tracker tkr(Tracker::Release, thread);
381 tkr.record(addr, size);
382 }
383 }
375 384
376 // record memory type on virtual memory base address 385 // record memory type on virtual memory base address
377 static inline void record_virtual_memory_type(address base, MEMFLAGS flags, 386 static inline void record_virtual_memory_type(address base, MEMFLAGS flags,
378 Thread* thread = NULL) { 387 Thread* thread = NULL) {
379 Tracker tkr(Tracker::Type); 388 Tracker tkr(Tracker::Type);