src/share/vm/services/memoryManager.cpp

changeset 5784
190899198332
parent 5312
71963b3f802a
child 6876
710a3c8b516e
child 6911
ce8f6bb717c9
equal deleted inserted replaced
5783:c1fbf21c7397 5784:190899198332
1 /* 1 /*
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2013, 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.
43 size_t, size_t, size_t, size_t); 43 size_t, size_t, size_t, size_t);
44 #endif /* !USDT2 */ 44 #endif /* !USDT2 */
45 45
46 MemoryManager::MemoryManager() { 46 MemoryManager::MemoryManager() {
47 _num_pools = 0; 47 _num_pools = 0;
48 _memory_mgr_obj = NULL; 48 (void)const_cast<instanceOop&>(_memory_mgr_obj = NULL);
49 } 49 }
50 50
51 void MemoryManager::add_pool(MemoryPool* pool) { 51 void MemoryManager::add_pool(MemoryPool* pool) {
52 assert(_num_pools < MemoryManager::max_num_pools, "_num_pools exceeds the max"); 52 assert(_num_pools < MemoryManager::max_num_pools, "_num_pools exceeds the max");
53 if (_num_pools < MemoryManager::max_num_pools) { 53 if (_num_pools < MemoryManager::max_num_pools) {

mercurial