equal
deleted
inserted
replaced
43 // Forward declarations. |
43 // Forward declarations. |
44 class OopClosure; |
44 class OopClosure; |
45 class ScanClosure; |
45 class ScanClosure; |
46 class FastScanClosure; |
46 class FastScanClosure; |
47 class FilteringClosure; |
47 class FilteringClosure; |
48 class CMSIsAliveClosure; |
|
49 |
48 |
50 class PSPromotionManager; |
49 class PSPromotionManager; |
51 class ParCompactionManager; |
50 class ParCompactionManager; |
52 |
51 |
53 class oopDesc { |
52 class oopDesc { |
91 |
90 |
92 // For klass field compression |
91 // For klass field compression |
93 inline int klass_gap() const; |
92 inline int klass_gap() const; |
94 inline void set_klass_gap(int z); |
93 inline void set_klass_gap(int z); |
95 static inline void set_klass_gap(HeapWord* mem, int z); |
94 static inline void set_klass_gap(HeapWord* mem, int z); |
96 // For when the klass pointer is being used as a linked list "next" field. |
|
97 inline void set_klass_to_list_ptr(oop k); |
|
98 inline oop list_ptr_from_klass(); |
|
99 |
95 |
100 // size of object header, aligned to platform wordSize |
96 // size of object header, aligned to platform wordSize |
101 static int header_size() { return sizeof(oopDesc)/HeapWordSize; } |
97 static int header_size() { return sizeof(oopDesc)/HeapWordSize; } |
102 |
98 |
103 // Returns whether this is an instance of k or an instance of a subclass of k |
99 // Returns whether this is an instance of k or an instance of a subclass of k |