< prev index next >

src/share/vm/oops/klass.cpp

Print this page




  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/javaClasses.hpp"
  27 #include "classfile/dictionary.hpp"
  28 #include "classfile/systemDictionary.hpp"
  29 #include "classfile/vmSymbols.hpp"
  30 #include "gc_implementation/shared/markSweep.inline.hpp"
  31 #include "gc_interface/collectedHeap.inline.hpp"
  32 #include "memory/heapInspection.hpp"
  33 #include "memory/metadataFactory.hpp"
  34 #include "memory/oopFactory.hpp"
  35 #include "memory/resourceArea.hpp"
  36 #include "oops/instanceKlass.hpp"
  37 #include "oops/klass.inline.hpp"
  38 #include "oops/oop.inline.hpp"
  39 #include "runtime/atomic.inline.hpp"
  40 #include "runtime/orderAccess.inline.hpp"
  41 #include "trace/traceMacros.hpp"
  42 #include "utilities/stack.hpp"
  43 #include "utilities/macros.hpp"

  44 #if INCLUDE_ALL_GCS
  45 #include "gc_implementation/g1/g1SATBCardTableModRefBS.hpp"
  46 #include "gc_implementation/parallelScavenge/psParallelCompact.hpp"
  47 #include "gc_implementation/parallelScavenge/psPromotionManager.hpp"
  48 #include "gc_implementation/parallelScavenge/psScavenge.hpp"
  49 #endif // INCLUDE_ALL_GCS
  50 
  51 void Klass::set_name(Symbol* n) {
  52   _name = n;
  53   if (_name != NULL) _name->increment_refcount();
  54 }
  55 
  56 bool Klass::is_subclass_of(const Klass* k) const {
  57   // Run up the super chain and check
  58   if (this == k) return true;
  59 
  60   Klass* t = const_cast<Klass*>(this)->super();
  61 
  62   while (t != NULL) {
  63     if (t == k) return true;




  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/javaClasses.hpp"
  27 #include "classfile/dictionary.hpp"
  28 #include "classfile/systemDictionary.hpp"
  29 #include "classfile/vmSymbols.hpp"
  30 #include "gc_implementation/shared/markSweep.inline.hpp"
  31 #include "gc_interface/collectedHeap.inline.hpp"
  32 #include "memory/heapInspection.hpp"
  33 #include "memory/metadataFactory.hpp"
  34 #include "memory/oopFactory.hpp"
  35 #include "memory/resourceArea.hpp"
  36 #include "oops/instanceKlass.hpp"
  37 #include "oops/klass.inline.hpp"
  38 #include "oops/oop.inline.hpp"
  39 #include "runtime/atomic.inline.hpp"
  40 #include "runtime/orderAccess.inline.hpp"
  41 #include "trace/traceMacros.hpp"

  42 #include "utilities/macros.hpp"
  43 #include "utilities/stack.inline.hpp"
  44 #if INCLUDE_ALL_GCS
  45 #include "gc_implementation/g1/g1SATBCardTableModRefBS.hpp"
  46 #include "gc_implementation/parallelScavenge/psParallelCompact.hpp"
  47 #include "gc_implementation/parallelScavenge/psPromotionManager.hpp"
  48 #include "gc_implementation/parallelScavenge/psScavenge.hpp"
  49 #endif // INCLUDE_ALL_GCS
  50 
  51 void Klass::set_name(Symbol* n) {
  52   _name = n;
  53   if (_name != NULL) _name->increment_refcount();
  54 }
  55 
  56 bool Klass::is_subclass_of(const Klass* k) const {
  57   // Run up the super chain and check
  58   if (this == k) return true;
  59 
  60   Klass* t = const_cast<Klass*>(this)->super();
  61 
  62   while (t != NULL) {
  63     if (t == k) return true;


< prev index next >