1.1 --- a/src/share/vm/runtime/os.cpp Mon Jun 10 11:30:51 2013 +0200 1.2 +++ b/src/share/vm/runtime/os.cpp Thu Jun 13 11:16:38 2013 -0700 1.3 @@ -1503,6 +1503,18 @@ 1.4 return res; 1.5 } 1.6 1.7 +void os::commit_memory_or_exit(char* addr, size_t bytes, bool executable, 1.8 + const char* mesg) { 1.9 + pd_commit_memory_or_exit(addr, bytes, executable, mesg); 1.10 + MemTracker::record_virtual_memory_commit((address)addr, bytes, CALLER_PC); 1.11 +} 1.12 + 1.13 +void os::commit_memory_or_exit(char* addr, size_t size, size_t alignment_hint, 1.14 + bool executable, const char* mesg) { 1.15 + os::pd_commit_memory_or_exit(addr, size, alignment_hint, executable, mesg); 1.16 + MemTracker::record_virtual_memory_commit((address)addr, size, CALLER_PC); 1.17 +} 1.18 + 1.19 bool os::uncommit_memory(char* addr, size_t bytes) { 1.20 bool res = pd_uncommit_memory(addr, bytes); 1.21 if (res) {