src/os/bsd/vm/perfMemory_bsd.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Cdiff src/os/bsd/vm/perfMemory_bsd.cpp

src/os/bsd/vm/perfMemory_bsd.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2001, 2012, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 753,764 **** // clear the shared memory region (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); return mapAddress; } // release a named shared memory region --- 753,763 ---- // clear the shared memory region (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, mtInternal, CURRENT_PC); return mapAddress; } // release a named shared memory region
*** 919,930 **** THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(), "Could not map PerfMemory"); } // 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); *addr = mapAddress; *sizep = size; if (PerfTraceMemOps) { --- 918,928 ---- THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(), "Could not map PerfMemory"); } // it does not go through os api, the operation has to record from here ! MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC); *addr = mapAddress; *sizep = size; if (PerfTraceMemOps) {
src/os/bsd/vm/perfMemory_bsd.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File