hotspot/src/share/vm/memory/iterator.cpp
changeset 30150 d9c940aa42ef
parent 25492 d27050bdfb04
child 30153 596ed88949ad
equal deleted inserted replaced
30149:c0f930abe5ed 30150:d9c940aa42ef
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
    24 
    24 
    25 #include "precompiled.hpp"
    25 #include "precompiled.hpp"
    26 #include "memory/iterator.hpp"
    26 #include "memory/iterator.inline.hpp"
       
    27 #include "memory/universe.hpp"
    27 #include "oops/oop.inline.hpp"
    28 #include "oops/oop.inline.hpp"
       
    29 #include "utilities/debug.hpp"
       
    30 #include "utilities/globalDefinitions.hpp"
    28 
    31 
    29 void KlassToOopClosure::do_klass(Klass* k) {
    32 void KlassToOopClosure::do_klass(Klass* k) {
    30   assert(_oop_closure != NULL, "Not initialized?");
    33   assert(_oop_closure != NULL, "Not initialized?");
    31   k->oops_do(_oop_closure);
    34   k->oops_do(_oop_closure);
    32 }
    35 }
    75   nmethod* nm = cb->as_nmethod_or_null();
    78   nmethod* nm = cb->as_nmethod_or_null();
    76   if (nm != NULL && !nm->test_set_oops_do_mark()) {
    79   if (nm != NULL && !nm->test_set_oops_do_mark()) {
    77     do_nmethod(nm);
    80     do_nmethod(nm);
    78   }
    81   }
    79 }
    82 }
       
    83 
       
    84 // Generate the *Klass::oop_oop_iterate functions for the base class
       
    85 // of the oop closures. These versions use the virtual do_oop calls,
       
    86 // instead of the devirtualized do_oop_nv version.
       
    87 ALL_KLASS_OOP_OOP_ITERATE_DEFN(ExtendedOopClosure,  _v)
       
    88 
       
    89 // Generate the *Klass::oop_oop_iterate functions
       
    90 // for the NoHeaderExtendedOopClosure helper class.
       
    91 ALL_KLASS_OOP_OOP_ITERATE_DEFN(NoHeaderExtendedOopClosure, _nv)