src/os/linux/vm/perfMemory_linux.cpp

changeset 7074
833b0f92429a
parent 6680
78bbf4d43a14
child 7495
42f27b59c550
child 7709
5ca2ea5eeff0
     1.1 --- a/src/os/linux/vm/perfMemory_linux.cpp	Wed Aug 27 09:36:55 2014 +0200
     1.2 +++ b/src/os/linux/vm/perfMemory_linux.cpp	Wed Aug 27 08:19:12 2014 -0400
     1.3 @@ -753,7 +753,7 @@
     1.4    (void)::memset((void*) mapAddress, 0, size);
     1.5  
     1.6    // it does not go through os api, the operation has to record from here
     1.7 -  MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC);
     1.8 +  MemTracker::record_virtual_memory_reserve_and_commit((address)mapAddress, size, CURRENT_PC, mtInternal);
     1.9  
    1.10    return mapAddress;
    1.11  }
    1.12 @@ -924,7 +924,7 @@
    1.13    }
    1.14  
    1.15    // it does not go through os api, the operation has to record from here
    1.16 -  MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC);
    1.17 +  MemTracker::record_virtual_memory_reserve_and_commit((address)mapAddress, size, CURRENT_PC, mtInternal);
    1.18  
    1.19    *addr = mapAddress;
    1.20    *sizep = size;

mercurial