hotspot/src/share/vm/runtime/reflectionUtils.hpp
author coleenp
Sat, 01 Sep 2012 13:25:18 -0400
changeset 13728 882756847a04
parent 10546 e79347eebbc5
child 17026 72b2233861f1
permissions -rw-r--r--
6964458: Reimplement class meta-data storage to use native memory Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
     2
 * Copyright (c) 1999, 2012, 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: 1
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
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: 1
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: 5547
diff changeset
    25
#ifndef SHARE_VM_RUNTIME_REFLECTIONUTILS_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    26
#define SHARE_VM_RUNTIME_REFLECTIONUTILS_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    27
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    28
#include "memory/allocation.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
#include "oops/instanceKlass.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    30
#include "oops/objArrayOop.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    31
#include "oops/oopsHierarchy.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    32
#include "runtime/handles.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    33
#include "runtime/reflection.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    34
#include "utilities/accessFlags.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    35
#include "utilities/globalDefinitions.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    36
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
// A KlassStream is an abstract stream for streaming over self, superclasses
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
// and (super)interfaces. Streaming is done in reverse order (subclasses first,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
// interfaces last).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
//    for (KlassStream st(k, false, false); !st.eos(); st.next()) {
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
    42
//      Klass* k = st.klass();
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
//      ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
//    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
class KlassStream VALUE_OBJ_CLASS_SPEC {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
 protected:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
  instanceKlassHandle _klass;           // current klass/interface iterated over
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
    49
  Array<Klass*>*    _interfaces;      // transitive interfaces for initial class
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
  int                 _interface_index; // current interface being processed
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
  bool                _local_only;      // process initial class/interface only
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
  bool                _classes_only;    // process classes only (no interfaces)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  int                 _index;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
  virtual int length() const = 0;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
  // constructor
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
  KlassStream(instanceKlassHandle klass, bool local_only, bool classes_only);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
  // testing
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
  bool eos();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
  // iterating
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
  virtual void next() = 0;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
  // accessors
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
  instanceKlassHandle klass() const { return _klass; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
  int index() const                 { return _index; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
// A MethodStream streams over all methods in a class, superclasses and (super)interfaces.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
// Streaming is done in reverse order (subclasses first, methods in reverse order)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
// Usage:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
//    for (MethodStream st(k, false, false); !st.eos(); st.next()) {
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
    78
//      Method* m = st.method();
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
//      ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
//    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
class MethodStream : public KlassStream {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
 private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
  int length() const          { return methods()->length(); }
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
    85
  Array<Method*>* methods() const { return _klass->methods(); }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  MethodStream(instanceKlassHandle klass, bool local_only, bool classes_only)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
    : KlassStream(klass, local_only, classes_only) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
    _index = length();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
    next();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  void next() { _index--; }
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
    94
  Method* method() const { return methods()->at(index()); }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
// A FieldStream streams over all fields in a class, superclasses and (super)interfaces.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
// Streaming is done in reverse order (subclasses first, fields in reverse order)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
// Usage:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
//    for (FieldStream st(k, false, false); !st.eos(); st.next()) {
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7397
diff changeset
   103
//      Symbol* field_name = st.name();
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
//      ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
//    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
class FieldStream : public KlassStream {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
 private:
10546
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 8921
diff changeset
   110
  int length() const                { return _klass->java_fields_count(); }
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 8921
diff changeset
   111
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
  FieldStream(instanceKlassHandle klass, bool local_only, bool classes_only)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
    : KlassStream(klass, local_only, classes_only) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
    _index = length();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
    next();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
10546
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 8921
diff changeset
   119
  void next() { _index -= 1; }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
  // Accessors for current field
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
  AccessFlags access_flags() const {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
    AccessFlags flags;
10546
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 8921
diff changeset
   124
    flags.set_flags(_klass->field_access_flags(_index));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
    return flags;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
  }
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7397
diff changeset
   127
  Symbol* name() const {
10546
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 8921
diff changeset
   128
    return _klass->field_name(_index);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
  }
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7397
diff changeset
   130
  Symbol* signature() const {
10546
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 8921
diff changeset
   131
    return _klass->field_signature(_index);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
  // missing: initval()
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
  int offset() const {
10546
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 8921
diff changeset
   135
    return _klass->field_offset( index() );
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
class FilteredField {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
 private:
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
   141
  Klass* _klass;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
  int      _field_offset;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
 public:
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
   145
  FilteredField(Klass* klass, int field_offset) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
    _klass = klass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
    _field_offset = field_offset;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
  }
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
   149
  Klass* klass() { return _klass; }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
  int  field_offset() { return _field_offset; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
class FilteredFieldsMap : AllStatic {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
 private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
  static GrowableArray<FilteredField *> *_filtered_fields;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  static void initialize();
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
   158
  static bool is_filtered_field(Klass* klass, int field_offset) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
    for (int i=0; i < _filtered_fields->length(); i++) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
      if (klass == _filtered_fields->at(i)->klass() &&
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
        field_offset == _filtered_fields->at(i)->field_offset()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
        return true;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
    return false;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
  }
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
   167
  static int  filtered_fields_count(Klass* klass, bool local_only) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
    int nflds = 0;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
    for (int i=0; i < _filtered_fields->length(); i++) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
      if (local_only && klass == _filtered_fields->at(i)->klass()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
        nflds++;
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
   172
      } else if (klass->is_subtype_of(_filtered_fields->at(i)->klass())) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
        nflds++;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
    return nflds;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
  }
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
   178
  // Enhance Class Redefinition Support
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
   179
  static void classes_do(KlassClosure* f) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
    for (int i = 0; i < _filtered_fields->length(); i++) {
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
   181
      f->do_klass(_filtered_fields->at(i)->klass());
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
// A FilteredFieldStream streams over all fields in a class, superclasses and
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
// (super)interfaces. Streaming is done in reverse order (subclasses first,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
// fields in reverse order)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
// Usage:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
//    for (FilteredFieldStream st(k, false, false); !st.eos(); st.next()) {
8076
96d498ec7ae1 6990754: Use native memory and reference counting to implement SymbolTable
coleenp
parents: 7397
diff changeset
   194
//      Symbol* field_name = st.name();
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
//      ...
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
//    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
class FilteredFieldStream : public FieldStream {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
 private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
  int  _filtered_fields_count;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  bool has_filtered_field() { return (_filtered_fields_count > 0); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  FilteredFieldStream(instanceKlassHandle klass, bool local_only, bool classes_only)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
    : FieldStream(klass, local_only, classes_only) {
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
   206
    _filtered_fields_count = FilteredFieldsMap::filtered_fields_count((Klass*)klass(), local_only);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
  int field_count();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
  void next() {
10546
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 8921
diff changeset
   210
    _index -= 1;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
    if (has_filtered_field()) {
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 10546
diff changeset
   212
      while (_index >=0 && FilteredFieldsMap::is_filtered_field((Klass*)_klass(), offset())) {
10546
e79347eebbc5 7086585: make Java field injection more flexible
never
parents: 8921
diff changeset
   213
        _index -= 1;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
};
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   218
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   219
#endif // SHARE_VM_RUNTIME_REFLECTIONUTILS_HPP