src/os/solaris/vm/perfMemory_solaris.cpp

changeset 7074
833b0f92429a
parent 6349
7d28f4e15b61
child 7495
42f27b59c550
child 7709
5ca2ea5eeff0
     1.1 --- a/src/os/solaris/vm/perfMemory_solaris.cpp	Wed Aug 27 09:36:55 2014 +0200
     1.2 +++ b/src/os/solaris/vm/perfMemory_solaris.cpp	Wed Aug 27 08:19:12 2014 -0400
     1.3 @@ -770,7 +770,8 @@
     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,
     1.9 +    size, CURRENT_PC, mtInternal);
    1.10  
    1.11    return mapAddress;
    1.12  }
    1.13 @@ -941,7 +942,8 @@
    1.14    }
    1.15  
    1.16    // it does not go through os api, the operation has to record from here
    1.17 -  MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC);
    1.18 +  MemTracker::record_virtual_memory_reserve_and_commit((address)mapAddress,
    1.19 +    size, CURRENT_PC, mtInternal);
    1.20  
    1.21    *addr = mapAddress;
    1.22    *sizep = size;

mercurial