equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
211 if (addr != NULL) { |
211 if (addr != NULL) { |
212 ThreadCritical tc; |
212 ThreadCritical tc; |
213 if (tracking_level() < NMT_summary) return; |
213 if (tracking_level() < NMT_summary) return; |
214 VirtualMemoryTracker::add_reserved_region((address)addr, size, |
214 VirtualMemoryTracker::add_reserved_region((address)addr, size, |
215 stack, flag, true); |
215 stack, flag, true); |
|
216 VirtualMemoryTracker::add_committed_region((address)addr, size, stack); |
216 } |
217 } |
217 } |
218 } |
218 |
219 |
219 static inline void record_virtual_memory_commit(void* addr, size_t size, |
220 static inline void record_virtual_memory_commit(void* addr, size_t size, |
220 const NativeCallStack& stack) { |
221 const NativeCallStack& stack) { |