8278568: Consolidate filler objects

Reviewed-by: tschatzl, mli, ayang
This commit is contained in:
Roman Kennke 2021-12-17 13:33:08 +00:00
parent 6412d57a0a
commit abab1738a7
7 changed files with 9 additions and 66 deletions

View file

@ -96,7 +96,7 @@ class oopDesc {
static inline void set_klass_gap(HeapWord* mem, int z);
// size of object header, aligned to platform wordSize
static int header_size() { return sizeof(oopDesc)/HeapWordSize; }
static constexpr int header_size() { return sizeof(oopDesc)/HeapWordSize; }
// Returns whether this is an instance of k or an instance of a subclass of k
inline bool is_a(Klass* k) const;