hotspot/src/share/vm/oops/methodDataKlass.cpp
author jiangli
Wed, 02 May 2012 13:21:36 -0400
changeset 12587 8f819769ca1b
parent 8297 f05d10c1c4b8
permissions -rw-r--r--
7158552: The instanceKlsss::_host_klass is only needed for anonymous class for JSR 292 support. Summary: Change the _host_klass to be conditionally created embedded instanceKlass field. Reviewed-by: jrose, coleenp, dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
8297
f05d10c1c4b8 7014851: Remove unused parallel compaction code
stefank
parents: 7397
diff changeset
     2
 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4584
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4584
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4584
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    25
#include "precompiled.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    26
#include "gc_implementation/shared/markSweep.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    27
#include "gc_interface/collectedHeap.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    28
#include "memory/gcLocker.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    29
#include "memory/resourceArea.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    30
#include "memory/universe.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    31
#include "oops/klassOop.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    32
#include "oops/methodDataKlass.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    33
#include "oops/methodDataOop.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    34
#include "oops/oop.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    35
#include "oops/oop.inline2.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    36
#include "runtime/handles.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    37
#ifndef SERIALGC
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    38
#include "gc_implementation/parallelScavenge/psScavenge.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    39
#include "oops/oop.pcgc.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6248
diff changeset
    40
#endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
klassOop methodDataKlass::create_klass(TRAPS) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
  methodDataKlass o;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
  KlassHandle h_this_klass(THREAD, Universe::klassKlassObj());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
  KlassHandle k = base_create_klass(h_this_klass, header_size(),
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
                                    o.vtbl_value(), CHECK_NULL);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
  // Make sure size calculation is right
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
  assert(k()->size() == align_object_size(header_size()),
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
         "wrong size for object");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
  return k();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
int methodDataKlass::oop_size(oop obj) const {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
  assert(obj->is_methodData(), "must be method data oop");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
  return methodDataOop(obj)->object_size();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
bool methodDataKlass::oop_is_parsable(oop obj) const {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
  assert(obj->is_methodData(), "must be method data oop");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
  return methodDataOop(obj)->object_is_parsable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
methodDataOop methodDataKlass::allocate(methodHandle method, TRAPS) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
  int size = methodDataOopDesc::compute_allocation_size_in_words(method);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
  KlassHandle h_k(THREAD, as_klassOop());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
  methodDataOop mdo =
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
    (methodDataOop)CollectedHeap::permanent_obj_allocate(h_k, size, CHECK_NULL);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
  assert(!mdo->is_parsable(), "not expecting parsability yet.");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
  No_Safepoint_Verifier no_safepoint;  // init function atomic wrt GC
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
  mdo->initialize(method);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
  assert(mdo->is_parsable(), "should be parsable here.");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
  assert(size == mdo->object_size(), "wrong size for methodDataOop");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
  return mdo;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
void methodDataKlass::oop_follow_contents(oop obj) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
  assert (obj->is_methodData(), "object must be method data");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
  methodDataOop m = methodDataOop(obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  obj->follow_header();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  MarkSweep::mark_and_push(m->adr_method());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  ResourceMark rm;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  for (ProfileData* data = m->first_data();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
       m->is_valid(data);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
       data = m->next_data(data)) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
    data->follow_contents();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
#ifndef SERIALGC
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
void methodDataKlass::oop_follow_contents(ParCompactionManager* cm,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
                                          oop obj) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
  assert (obj->is_methodData(), "object must be method data");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
  methodDataOop m = methodDataOop(obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
  obj->follow_header(cm);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
  PSParallelCompact::mark_and_push(cm, m->adr_method());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  ResourceMark rm;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
  for (ProfileData* data = m->first_data();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
       m->is_valid(data);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
       data = m->next_data(data)) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
    data->follow_contents(cm);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
#endif // SERIALGC
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   112
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
int methodDataKlass::oop_oop_iterate(oop obj, OopClosure* blk) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
  assert (obj->is_methodData(), "object must be method data");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  methodDataOop m = methodDataOop(obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
  // Get size before changing pointers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  // Don't call size() or oop_size() since that is a virtual call.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
  int size = m->object_size();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
  obj->oop_iterate_header(blk);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
  blk->do_oop(m->adr_method());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
  ResourceMark rm;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
  for (ProfileData* data = m->first_data();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
       m->is_valid(data);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
       data = m->next_data(data)) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
    data->oop_iterate(blk);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
  return size;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
int methodDataKlass::oop_oop_iterate_m(oop obj, OopClosure* blk, MemRegion mr) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
  assert (obj->is_methodData(), "object must be method data");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
  methodDataOop m = methodDataOop(obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
  // Get size before changing pointers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
  // Don't call size() or oop_size() since that is a virtual call.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
  int size = m->object_size();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
  obj->oop_iterate_header(blk, mr);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
  oop* adr = m->adr_method();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
  if (mr.contains(adr)) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
    blk->do_oop(m->adr_method());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
  ResourceMark rm;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  for (ProfileData* data = m->first_data();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
       m->is_valid(data);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
       data = m->next_data(data)) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
    data->oop_iterate_m(blk, mr);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
  return size;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
int methodDataKlass::oop_adjust_pointers(oop obj) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
  assert(obj->is_methodData(), "should be method data");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
  methodDataOop m = methodDataOop(obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
  // Get size before changing pointers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
  // Don't call size() or oop_size() since that is a virtual call.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  int size = m->object_size();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
  obj->adjust_header();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
  MarkSweep::adjust_pointer(m->adr_method());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
  ResourceMark rm;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
  ProfileData* data;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
  for (data = m->first_data(); m->is_valid(data); data = m->next_data(data)) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
    data->adjust_pointers();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
  return size;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
#ifndef SERIALGC
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
void methodDataKlass::oop_push_contents(PSPromotionManager* pm, oop obj) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
  assert (obj->is_methodData(), "object must be method data");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
  methodDataOop m = methodDataOop(obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
  // This should never point into the young gen.
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   175
  assert(!PSScavenge::should_scavenge(m->adr_method()), "Sanity");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
int methodDataKlass::oop_update_pointers(ParCompactionManager* cm, oop obj) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
  assert(obj->is_methodData(), "should be method data");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
  methodDataOop m = methodDataOop(obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
  PSParallelCompact::adjust_pointer(m->adr_method());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
  ResourceMark rm;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
  ProfileData* data;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
  for (data = m->first_data(); m->is_valid(data); data = m->next_data(data)) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
    data->update_pointers();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
  return m->object_size();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
#endif // SERIALGC
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
#ifndef PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
// Printing
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
void methodDataKlass::oop_print_on(oop obj, outputStream* st) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
  assert(obj->is_methodData(), "should be method data");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
  methodDataOop m = methodDataOop(obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
  st->print("method data for ");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
  m->method()->print_value_on(st);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  st->cr();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
  m->print_data_on(st);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
4584
e2a449e8cc6f 6912062: disassembler plugin needs to produce symbolic information in product mode
jrose
parents: 670
diff changeset
   205
#endif //PRODUCT
e2a449e8cc6f 6912062: disassembler plugin needs to produce symbolic information in product mode
jrose
parents: 670
diff changeset
   206
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
void methodDataKlass::oop_print_value_on(oop obj, outputStream* st) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
  assert(obj->is_methodData(), "should be method data");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
  methodDataOop m = methodDataOop(obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
  st->print("method data for ");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
  m->method()->print_value_on(st);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
const char* methodDataKlass::internal_name() const {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
  return "{method data}";
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
// Verification
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
void methodDataKlass::oop_verify_on(oop obj, outputStream* st) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
  Klass::oop_verify_on(obj, st);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
  guarantee(obj->is_methodData(), "object must be method data");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
  methodDataOop m = methodDataOop(obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
  guarantee(m->is_perm(), "should be in permspace");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
  m->verify_data_on(st);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
}