1482 pd_split_reserved_memory(base, size, split, realloc); 1483 } 1484 1485 bool os::commit_memory(char* addr, size_t bytes, bool executable) { 1486 bool res = pd_commit_memory(addr, bytes, executable); 1487 if (res) { 1488 MemTracker::record_virtual_memory_commit((address)addr, bytes, CALLER_PC); 1489 } 1490 return res; 1491 } 1492 1493 bool os::commit_memory(char* addr, size_t size, size_t alignment_hint, 1494 bool executable) { 1495 bool res = os::pd_commit_memory(addr, size, alignment_hint, executable); 1496 if (res) { 1497 MemTracker::record_virtual_memory_commit((address)addr, size, CALLER_PC); 1498 } 1499 return res; 1500 } 1501 1502 bool os::uncommit_memory(char* addr, size_t bytes) { 1503 bool res = pd_uncommit_memory(addr, bytes); 1504 if (res) { 1505 MemTracker::record_virtual_memory_uncommit((address)addr, bytes); 1506 } 1507 return res; 1508 } 1509 1510 bool os::release_memory(char* addr, size_t bytes) { 1511 bool res = pd_release_memory(addr, bytes); 1512 if (res) { 1513 MemTracker::record_virtual_memory_release((address)addr, bytes); 1514 } 1515 return res; 1516 } 1517 1518 1519 char* os::map_memory(int fd, const char* file_name, size_t file_offset, 1520 char *addr, size_t bytes, bool read_only, 1521 bool allow_exec) { | 1482 pd_split_reserved_memory(base, size, split, realloc); 1483 } 1484 1485 bool os::commit_memory(char* addr, size_t bytes, bool executable) { 1486 bool res = pd_commit_memory(addr, bytes, executable); 1487 if (res) { 1488 MemTracker::record_virtual_memory_commit((address)addr, bytes, CALLER_PC); 1489 } 1490 return res; 1491 } 1492 1493 bool os::commit_memory(char* addr, size_t size, size_t alignment_hint, 1494 bool executable) { 1495 bool res = os::pd_commit_memory(addr, size, alignment_hint, executable); 1496 if (res) { 1497 MemTracker::record_virtual_memory_commit((address)addr, size, CALLER_PC); 1498 } 1499 return res; 1500 } 1501 1502 void os::commit_memory_or_exit(char* addr, size_t bytes, bool executable, 1503 const char* mesg) { 1504 pd_commit_memory_or_exit(addr, bytes, executable, mesg); 1505 MemTracker::record_virtual_memory_commit((address)addr, bytes, CALLER_PC); 1506 } 1507 1508 void os::commit_memory_or_exit(char* addr, size_t size, size_t alignment_hint, 1509 bool executable, const char* mesg) { 1510 os::pd_commit_memory_or_exit(addr, size, alignment_hint, executable, mesg); 1511 MemTracker::record_virtual_memory_commit((address)addr, size, CALLER_PC); 1512 } 1513 1514 bool os::uncommit_memory(char* addr, size_t bytes) { 1515 bool res = pd_uncommit_memory(addr, bytes); 1516 if (res) { 1517 MemTracker::record_virtual_memory_uncommit((address)addr, bytes); 1518 } 1519 return res; 1520 } 1521 1522 bool os::release_memory(char* addr, size_t bytes) { 1523 bool res = pd_release_memory(addr, bytes); 1524 if (res) { 1525 MemTracker::record_virtual_memory_release((address)addr, bytes); 1526 } 1527 return res; 1528 } 1529 1530 1531 char* os::map_memory(int fd, const char* file_name, size_t file_offset, 1532 char *addr, size_t bytes, bool read_only, 1533 bool allow_exec) { |