Mercurial > hg > truffle
comparison src/share/vm/oops/klassOop.hpp @ 4970:33df1aeaebbf
Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 27 Feb 2012 13:10:13 +0100 |
parents | 069ab3f976d3 |
children |
comparison
equal
deleted
inserted
replaced
4703:2cfb7fb2dce7 | 4970:33df1aeaebbf |
---|---|
36 // [klass_field] | 36 // [klass_field] |
37 // [KLASS ] | 37 // [KLASS ] |
38 | 38 |
39 class klassOopDesc : public oopDesc { | 39 class klassOopDesc : public oopDesc { |
40 public: | 40 public: |
41 // size operation | |
42 static int header_size() { return sizeof(klassOopDesc)/HeapWordSize; } | |
43 | |
44 // support for code generation | |
45 static int klass_part_offset_in_bytes() { return sizeof(klassOopDesc); } | |
46 | |
47 // returns the Klass part containing dispatching behavior | 41 // returns the Klass part containing dispatching behavior |
48 Klass* klass_part() const { return (Klass*)((address)this + klass_part_offset_in_bytes()); } | 42 Klass* klass_part() const { return (Klass*)((address)this + sizeof(klassOopDesc)); } |
49 | 43 |
50 // Convenience wrapper | 44 // Convenience wrapper |
51 inline oop java_mirror() const; | 45 inline oop java_mirror() const; |
52 | 46 |
53 private: | 47 private: |