2273N/A * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A// Only bother with this argument setup if dtrace is available 0N/A#
else // ndef DTRACE_ENABLED 0N/A// counters for classes loaded from class files 0N/A// counters for classes loaded from shared archive 0N/A // These counters are for java.lang.management API support. 0N/A // They are created even if -XX:-UsePerfData is set and in 0N/A // that case, they will be allocated on C heap. 0N/A // Classes that can be unloaded must be non-shared 0N/A // add the class size 0N/A // Compute method size & subtract from running total. 0N/A // We are called during phase 1 of mark sweep, so it's 0N/A // still ok to iterate through methodOops here. 0N/A // increment the count 0N/A // add the class size 0N/A // lifted from ClassStatistics.do_class(klassOop k) 0N/A // We do not have to count implementors, since we only store one! 0N/A // verbose will be set to the previous value 0N/A// Caller to this function must own Management_lock 0N/A // For consistency of the loaded classes, grab the SystemDictionary lock 0N/A // Set _loaded_classes and _current_thread and begin enumerating all classes. 0N/A // Only one thread will do the enumeration at a time. 0N/A // These static variables are needed and they are used by the static method 0N/A // add_loaded_class called from classes_do(). 0N/A // FIXME: Exclude array klasses for now 0N/A // Universe::basic_type_classes_do(&add_loaded_class);