--- old/src/os/linux/vm/perfMemory_linux.cpp 2013-05-13 16:33:50.990276000 -0400 +++ new/src/os/linux/vm/perfMemory_linux.cpp 2013-05-13 16:33:49.977917000 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -755,8 +755,8 @@ (void)::memset((void*) mapAddress, 0, size); // it does not go through os api, the operation has to record from here - MemTracker::record_virtual_memory_reserve((address)mapAddress, size, CURRENT_PC); - MemTracker::record_virtual_memory_type((address)mapAddress, mtInternal); + NMTTrackOp op(NMTTrackOp::ReserveAndCommitOp); + op.execute_op((address)mapAddress, size, mtInternal, CURRENT_PC); return mapAddress; } @@ -921,8 +921,8 @@ } // it does not go through os api, the operation has to record from here - MemTracker::record_virtual_memory_reserve((address)mapAddress, size, CURRENT_PC); - MemTracker::record_virtual_memory_type((address)mapAddress, mtInternal); + NMTTrackOp op(NMTTrackOp::ReserveAndCommitOp); + op.execute_op((address)mapAddress, size, mtInternal, CURRENT_PC); *addr = mapAddress; *sizep = size;