/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "classfile/javaClasses.hpp"
#include "gc_implementation/shared/markSweep.inline.hpp"
#include "gc_interface/collectedHeap.inline.hpp"
#include "interpreter/interpreter.hpp"
#include "memory/gcLocker.hpp"
#include "memory/resourceArea.hpp"
#include "memory/universe.inline.hpp"
#include "oops/constMethodKlass.hpp"
#include "oops/klassOop.hpp"
#include "oops/methodDataOop.hpp"
#include "oops/methodKlass.hpp"
#include "oops/oop.inline.hpp"
#include "oops/oop.inline2.hpp"
#include "oops/symbol.hpp"
#include "runtime/handles.inline.hpp"
methodKlass o;
// Make sure size calculation is right
return k();
}
}
}
m->set_constMethod(xconst());
m->set_method_size(size);
m->set_name_index(0);
m->set_signature_index(0);
#ifdef CC_INTERP
m->set_result_index(T_VOID);
#endif
m->set_constants(NULL);
m->set_max_stack(0);
m->set_max_locals(0);
m->set_jfr_towrite(false);
m->set_method_data(NULL);
// Fix and bury in methodOop
m->set_adapter_entry(NULL);
m->clear_code(); // from_c/from_i get set to c2i/i2i
if (access_flags.is_native()) {
m->clear_native_function();
}
m->invocation_counter()->init();
m->backedge_counter()->init();
#ifdef TIERED
m->set_rate(0);
m->set_prev_event_count(0);
m->set_prev_time(0);
#endif
return m;
}
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::methodKlassObj never moves.
if (m->method_data() != NULL) {
}
}
#ifndef SERIALGC
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::methodKlassObj never moves.
#ifdef COMPILER2
if (m->method_data() != NULL) {
}
#endif // COMPILER2
}
#endif // SERIALGC
// Get size before changing pointers.
// Don't call size() or oop_size() since that is a virtual call.
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::methodKlassObj never moves
if (m->method_data() != NULL) {
}
return size;
}
// Get size before changing pointers.
// Don't call size() or oop_size() since that is a virtual call.
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::methodKlassObj never moves.
adr = m->adr_constMethod();
if (m->method_data() != NULL) {
adr = m->adr_method_data();
}
return size;
}
// Get size before changing pointers.
// Don't call size() or oop_size() since that is a virtual call.
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::methodKlassObj never moves.
if (m->method_data() != NULL) {
}
return size;
}
#ifndef SERIALGC
}
#ifdef COMPILER2
if (m->method_data() != NULL) {
}
#endif // COMPILER2
return m->object_size();
}
#endif // SERIALGC
#ifndef PRODUCT
// Printing
// get the effect of PrintOopAddress, always, for methods:
st->print (" - access: 0x%x ", m->access_flags().as_int()); m->access_flags().print_on(st); st->cr();
st->print_cr(" - intrinsic id: %d %s", m->intrinsic_id(), vmIntrinsics::name_at(m->intrinsic_id()));
if (m->highest_comp_level() != CompLevel_none)
else
if (m->code_size() != 0) {
}
if (m->method_data() != NULL) {
}
if (m->checked_exceptions_length() > 0) {
if (Verbose) {
for (int i = 0; i < m->checked_exceptions_length(); i++) {
}
}
}
if (m->has_linenumber_table()) {
if (Verbose) {
}
}
}
if (m->localvariable_table_length() > 0) {
if (Verbose) {
for (int i = 0; i < m->localvariable_table_length(); i++) {
}
}
}
}
if (m->is_native()) {
}
}
#endif //PRODUCT
}
return "{method}";
}
// Verification
if (!obj->partially_loaded()) {
}
}
}
}