hotspot/src/share/vm/runtime/os.cpp
changeset 18069 e6d4971c8650
parent 18025 b7bcf7497f93
child 18086 f44cf213a775
equal deleted inserted replaced
18025:b7bcf7497f93 18069:e6d4971c8650
  1501     MemTracker::record_virtual_memory_commit((address)addr, size, CALLER_PC);
  1501     MemTracker::record_virtual_memory_commit((address)addr, size, CALLER_PC);
  1502   }
  1502   }
  1503   return res;
  1503   return res;
  1504 }
  1504 }
  1505 
  1505 
       
  1506 void os::commit_memory_or_exit(char* addr, size_t bytes, bool executable,
       
  1507                                const char* mesg) {
       
  1508   pd_commit_memory_or_exit(addr, bytes, executable, mesg);
       
  1509   MemTracker::record_virtual_memory_commit((address)addr, bytes, CALLER_PC);
       
  1510 }
       
  1511 
       
  1512 void os::commit_memory_or_exit(char* addr, size_t size, size_t alignment_hint,
       
  1513                                bool executable, const char* mesg) {
       
  1514   os::pd_commit_memory_or_exit(addr, size, alignment_hint, executable, mesg);
       
  1515   MemTracker::record_virtual_memory_commit((address)addr, size, CALLER_PC);
       
  1516 }
       
  1517 
  1506 bool os::uncommit_memory(char* addr, size_t bytes) {
  1518 bool os::uncommit_memory(char* addr, size_t bytes) {
  1507   bool res = pd_uncommit_memory(addr, bytes);
  1519   bool res = pd_uncommit_memory(addr, bytes);
  1508   if (res) {
  1520   if (res) {
  1509     MemTracker::record_virtual_memory_uncommit((address)addr, bytes);
  1521     MemTracker::record_virtual_memory_uncommit((address)addr, bytes);
  1510   }
  1522   }