src/hotspot/share/oops/instanceRefKlass.hpp
author stefank
Fri, 04 May 2018 11:41:35 +0200
changeset 49982 9042ffe5b7fe
parent 47216 71c04702a3d5
child 50752 9d62da00bf15
permissions -rw-r--r--
8200729: Conditional compilation of GCs Reviewed-by: ehelin, coleenp, kvn, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
46415
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
     2
 * Copyright (c) 1997, 2017, 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: 1374
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1374
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: 1374
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_OOPS_INSTANCEREFKLASS_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    26
#define SHARE_VM_OOPS_INSTANCEREFKLASS_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    27
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 30150
diff changeset
    28
#include "gc/shared/specialized_oop_closures.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
#include "oops/instanceKlass.hpp"
15482
470d0b0c09f1 8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents: 13738
diff changeset
    30
#include "utilities/macros.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    31
34666
1c7168ea0034 8140485: Class load and creation cleanup
mgronlun
parents: 33151
diff changeset
    32
class ClassFileParser;
1c7168ea0034 8140485: Class load and creation cleanup
mgronlun
parents: 33151
diff changeset
    33
13738
d67be49a5beb 7195833: NPG: Rename instanceClassLoaderKlass, instanceRefKlass and instanceMirrorKlass
coleenp
parents: 13728
diff changeset
    34
// An InstanceRefKlass is a specialized InstanceKlass for Java
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
// classes that are subclasses of java/lang/ref/Reference.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
// These classes are used to implement soft/weak/final/phantom
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
// references and finalization, and need special treatment by the
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
// garbage collector.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
// During GC discovered reference objects are added (chained) to one
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
// of the four lists below, depending on the type of reference.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
// The linked occurs through the next field in class java/lang/ref/Reference.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
// Afterwards, the discovered references are processed in decreasing
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
// order of reachability. Reference objects eligible for notification
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
// are linked to the static pending_list in class java/lang/ref/Reference,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
// and the pending list lock object in the same class is notified.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
13738
d67be49a5beb 7195833: NPG: Rename instanceClassLoaderKlass, instanceRefKlass and instanceMirrorKlass
coleenp
parents: 13728
diff changeset
    51
class InstanceRefKlass: public InstanceKlass {
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 7446
diff changeset
    52
  friend class InstanceKlass;
34666
1c7168ea0034 8140485: Class load and creation cleanup
mgronlun
parents: 33151
diff changeset
    53
 private:
1c7168ea0034 8140485: Class load and creation cleanup
mgronlun
parents: 33151
diff changeset
    54
  InstanceRefKlass(const ClassFileParser& parser) : InstanceKlass(parser, InstanceKlass::_misc_kind_reference) {}
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 7446
diff changeset
    55
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
 public:
13738
d67be49a5beb 7195833: NPG: Rename instanceClassLoaderKlass, instanceRefKlass and instanceMirrorKlass
coleenp
parents: 13728
diff changeset
    57
  InstanceRefKlass() { assert(DumpSharedSpaces || UseSharedSpaces, "only for CDS"); }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
30150
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    59
  // GC specific object visitors
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    60
  //
49982
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 47216
diff changeset
    61
#if INCLUDE_PARALLELGC
30150
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    62
  // Parallel Scavenge
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    63
  void oop_ps_push_contents(  oop obj, PSPromotionManager* pm);
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    64
  // Parallel Compact
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    65
  void oop_pc_follow_contents(oop obj, ParCompactionManager* cm);
35877
a2a62511d0f8 8146987: Improve Parallel GC Full GC by caching results of live_words_in_range()
tschatzl
parents: 34666
diff changeset
    66
  void oop_pc_update_pointers(oop obj, ParCompactionManager* cm);
30150
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    67
#endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
30150
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    69
  // Oop fields (and metadata) iterators
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    70
  //  [nv = true]  Use non-virtual calls to do_oop_nv.
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    71
  //  [nv = false] Use virtual calls to do_oop.
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    72
  //
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    73
  // The InstanceRefKlass iterators also support reference processing.
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    74
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    75
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    76
  // Forward iteration
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    77
private:
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    78
  // Iterate over all oop fields and metadata.
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    79
  template <bool nv, class OopClosureType>
32606
fdaa30d06ada 8129417: Oop iteration clean-up to remove oop_ms_follow_contents
sjohanss
parents: 30880
diff changeset
    80
  inline void oop_oop_iterate(oop obj, OopClosureType* closure);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
30150
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    82
  // Reverse iteration
49982
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 47216
diff changeset
    83
#if INCLUDE_OOP_OOP_ITERATE_BACKWARDS
30150
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    84
  // Iterate over all oop fields and metadata.
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    85
  template <bool nv, class OopClosureType>
32606
fdaa30d06ada 8129417: Oop iteration clean-up to remove oop_ms_follow_contents
sjohanss
parents: 30880
diff changeset
    86
  inline void oop_oop_iterate_reverse(oop obj, OopClosureType* closure);
49982
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 47216
diff changeset
    87
#endif
30150
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    88
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    89
  // Bounded range iteration
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    90
  // Iterate over all oop fields and metadata.
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    91
  template <bool nv, class OopClosureType>
32606
fdaa30d06ada 8129417: Oop iteration clean-up to remove oop_ms_follow_contents
sjohanss
parents: 30880
diff changeset
    92
  inline void oop_oop_iterate_bounded(oop obj, OopClosureType* closure, MemRegion mr);
30150
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    93
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    94
  // Reference processing part of the iterators.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
30150
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    96
  // Specialized for [T = oop] or [T = narrowOop].
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    97
  template <bool nv, typename T, class OopClosureType, class Contains>
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    98
  inline void oop_oop_iterate_ref_processing_specialized(oop obj, OopClosureType* closure, Contains& contains);
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
    99
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
   100
  // Only perform reference processing if the referent object is within mr.
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
   101
  template <bool nv, class OopClosureType>
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
   102
  inline void oop_oop_iterate_ref_processing_bounded(oop obj, OopClosureType* closure, MemRegion mr);
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
   103
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
   104
  // Reference processing
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
   105
  template <bool nv, class OopClosureType>
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
   106
  inline void oop_oop_iterate_ref_processing(oop obj, OopClosureType* closure);
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
   107
46415
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   108
  // Building blocks for specialized handling.
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   109
  template <bool nv, typename T, class OopClosureType, class Contains>
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   110
  static void do_referent(oop obj, OopClosureType* closure, Contains& contains);
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   111
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   112
  template <bool nv, typename T, class OopClosureType, class Contains>
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   113
  static void do_next(oop obj, OopClosureType* closure, Contains& contains);
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   114
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   115
  template <bool nv, typename T, class OopClosureType, class Contains>
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   116
  static void do_discovered(oop obj, OopClosureType* closure, Contains& contains);
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   117
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   118
  template <typename T, class OopClosureType>
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   119
  static bool try_discover(oop obj, ReferenceType type, OopClosureType* closure);
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   120
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   121
  // Do discovery while handling InstanceRefKlasses. Reference discovery
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   122
  // is only done if the closure provides a ReferenceProcessor.
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   123
  template <bool nv, typename T, class OopClosureType, class Contains>
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   124
  static void oop_oop_iterate_discovery(oop obj, ReferenceType type, OopClosureType* closure, Contains& contains);
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   125
46445
825b002e05ae 8138888: Remove ExtendedOopClosure::apply_to_weak_ref_discovered_field
sjohanss
parents: 46415
diff changeset
   126
  // Used for a special case in G1 where the closure needs to be applied
825b002e05ae 8138888: Remove ExtendedOopClosure::apply_to_weak_ref_discovered_field
sjohanss
parents: 46415
diff changeset
   127
  // to the discovered field. Reference discovery is also done if the
825b002e05ae 8138888: Remove ExtendedOopClosure::apply_to_weak_ref_discovered_field
sjohanss
parents: 46415
diff changeset
   128
  // closure provides a ReferenceProcessor.
825b002e05ae 8138888: Remove ExtendedOopClosure::apply_to_weak_ref_discovered_field
sjohanss
parents: 46415
diff changeset
   129
  template <bool nv, typename T, class OopClosureType, class Contains>
825b002e05ae 8138888: Remove ExtendedOopClosure::apply_to_weak_ref_discovered_field
sjohanss
parents: 46415
diff changeset
   130
  static void oop_oop_iterate_discovered_and_discovery(oop obj, ReferenceType type, OopClosureType* closure, Contains& contains);
825b002e05ae 8138888: Remove ExtendedOopClosure::apply_to_weak_ref_discovered_field
sjohanss
parents: 46415
diff changeset
   131
46415
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   132
  // Apply the closure to all fields. No reference discovery is done.
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   133
  template <bool nv, typename T, class OopClosureType, class Contains>
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   134
  static void oop_oop_iterate_fields(oop obj, OopClosureType* closure, Contains& contains);
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   135
7d5a286cdf89 8138737: Remove oop_ms_adjust_pointers and use oop_iterate instead
sjohanss
parents: 37129
diff changeset
   136
  template <typename T>
46446
ababb65abf24 8179550: Unify trace logging for InstanceRefKlass
sjohanss
parents: 46445
diff changeset
   137
  static void trace_reference_gc(const char *s, oop obj) NOT_DEBUG_RETURN;
30150
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
   138
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
   139
 public:
d9c940aa42ef 8075955: Replace the macro based implementation of oop_oop_iterate with a template based solution
stefank
parents: 29688
diff changeset
   140
30880
efe35e08179f 8080746: Refactor oop iteration macros to be more general
sjohanss
parents: 30764
diff changeset
   141
  ALL_OOP_OOP_ITERATE_CLOSURES_1(OOP_OOP_ITERATE_DECL)
efe35e08179f 8080746: Refactor oop iteration macros to be more general
sjohanss
parents: 30764
diff changeset
   142
  ALL_OOP_OOP_ITERATE_CLOSURES_2(OOP_OOP_ITERATE_DECL)
1374
4c24294029a9 6711316: Open source the Garbage-First garbage collector
ysr
parents: 1
diff changeset
   143
49982
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 47216
diff changeset
   144
#if INCLUDE_OOP_OOP_ITERATE_BACKWARDS
30880
efe35e08179f 8080746: Refactor oop iteration macros to be more general
sjohanss
parents: 30764
diff changeset
   145
  ALL_OOP_OOP_ITERATE_CLOSURES_1(OOP_OOP_ITERATE_DECL_BACKWARDS)
efe35e08179f 8080746: Refactor oop iteration macros to be more general
sjohanss
parents: 30764
diff changeset
   146
  ALL_OOP_OOP_ITERATE_CLOSURES_2(OOP_OOP_ITERATE_DECL_BACKWARDS)
49982
9042ffe5b7fe 8200729: Conditional compilation of GCs
stefank
parents: 47216
diff changeset
   147
#endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
  // Update non-static oop maps so 'referent', 'nextPending' and
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
  // 'discovered' will look like non-oops
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 7446
diff changeset
   151
  static void update_nonstatic_oop_maps(Klass* k);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
  // Verification
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
  void oop_verify_on(oop obj, outputStream* st);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
};
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   157
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   158
#endif // SHARE_VM_OOPS_INSTANCEREFKLASS_HPP