< prev index next >

src/share/vm/oops/instanceKlass.hpp

Print this page




  83  public:
  84    FieldPrinter(outputStream* st, oop obj = NULL) : _obj(obj), _st(st) {}
  85    void do_field(fieldDescriptor* fd);
  86 };
  87 #endif  // !PRODUCT
  88 
  89 // ValueObjs embedded in klass. Describes where oops are located in instances of
  90 // this klass.
  91 class OopMapBlock VALUE_OBJ_CLASS_SPEC {
  92  public:
  93   // Byte offset of the first oop mapped by this block.
  94   int offset() const          { return _offset; }
  95   void set_offset(int offset) { _offset = offset; }
  96 
  97   // Number of oops in this block.
  98   uint count() const         { return _count; }
  99   void set_count(uint count) { _count = count; }
 100 
 101   // sizeof(OopMapBlock) in words.
 102   static const int size_in_words() {
 103     return align_size_up((int)sizeof(OopMapBlock), wordSize) >>
 104       LogBytesPerWord;
 105   }
 106 
 107  private:
 108   int  _offset;
 109   uint _count;
 110 };
 111 
 112 struct JvmtiCachedClassFileData;
 113 
 114 class InstanceKlass: public Klass {
 115   friend class VMStructs;
 116   friend class JVMCIVMStructs;
 117   friend class ClassFileParser;
 118   friend class CompileReplay;
 119 
 120  protected:
 121   InstanceKlass(const ClassFileParser& parser, unsigned kind);
 122 
 123  public:




  83  public:
  84    FieldPrinter(outputStream* st, oop obj = NULL) : _obj(obj), _st(st) {}
  85    void do_field(fieldDescriptor* fd);
  86 };
  87 #endif  // !PRODUCT
  88 
  89 // ValueObjs embedded in klass. Describes where oops are located in instances of
  90 // this klass.
  91 class OopMapBlock VALUE_OBJ_CLASS_SPEC {
  92  public:
  93   // Byte offset of the first oop mapped by this block.
  94   int offset() const          { return _offset; }
  95   void set_offset(int offset) { _offset = offset; }
  96 
  97   // Number of oops in this block.
  98   uint count() const         { return _count; }
  99   void set_count(uint count) { _count = count; }
 100 
 101   // sizeof(OopMapBlock) in words.
 102   static const int size_in_words() {
 103     return align_up((int)sizeof(OopMapBlock), wordSize) >>
 104       LogBytesPerWord;
 105   }
 106 
 107  private:
 108   int  _offset;
 109   uint _count;
 110 };
 111 
 112 struct JvmtiCachedClassFileData;
 113 
 114 class InstanceKlass: public Klass {
 115   friend class VMStructs;
 116   friend class JVMCIVMStructs;
 117   friend class ClassFileParser;
 118   friend class CompileReplay;
 119 
 120  protected:
 121   InstanceKlass(const ClassFileParser& parser, unsigned kind);
 122 
 123  public:


< prev index next >