8251358: Clean up Access configuration after Shenandoah barrier change

Reviewed-by: eosterlund, rkennke, shade
This commit is contained in:
Aditya Mandaleeka 2020-09-29 07:25:08 +00:00 committed by Aleksey Shipilev
parent 9c17a35e50
commit e63b90cc17
38 changed files with 110 additions and 202 deletions

View file

@ -59,21 +59,18 @@ class oopDesc {
public:
inline markWord mark() const;
inline markWord mark_raw() const;
inline markWord* mark_addr_raw() const;
inline markWord* mark_addr() const;
inline void set_mark(markWord m);
inline void set_mark_raw(markWord m);
static inline void set_mark_raw(HeapWord* mem, markWord m);
static inline void set_mark(HeapWord* mem, markWord m);
inline void release_set_mark(markWord m);
inline markWord cas_set_mark(markWord new_mark, markWord old_mark);
inline markWord cas_set_mark_raw(markWord new_mark, markWord old_mark, atomic_memory_order order = memory_order_conservative);
inline markWord cas_set_mark(markWord new_mark, markWord old_mark, atomic_memory_order order);
// Used only to re-initialize the mark word (e.g., of promoted
// objects during a GC) -- requires a valid klass pointer
inline void init_mark();
inline void init_mark_raw();
inline Klass* klass() const;
inline Klass* klass_or_null() const;
@ -117,11 +114,10 @@ class oopDesc {
public:
// field addresses in oop
inline void* field_addr(int offset) const;
inline void* field_addr_raw(int offset) const;
inline void* field_addr(int offset) const;
// Need this as public for garbage collection.
template <class T> inline T* obj_field_addr_raw(int offset) const;
template <class T> inline T* obj_field_addr(int offset) const;
template <typename T> inline size_t field_offset(T* p) const;
@ -237,7 +233,6 @@ class oopDesc {
inline bool is_locked() const;
inline bool is_unlocked() const;
inline bool has_bias_pattern() const;
inline bool has_bias_pattern_raw() const;
// asserts and guarantees
static bool is_oop(oop obj, bool ignore_mark_word = false);
@ -291,9 +286,9 @@ class oopDesc {
intptr_t slow_identity_hash();
// marks are forwarded to stack when object is locked
inline bool has_displaced_mark_raw() const;
inline markWord displaced_mark_raw() const;
inline void set_displaced_mark_raw(markWord m);
inline bool has_displaced_mark() const;
inline markWord displaced_mark() const;
inline void set_displaced_mark(markWord m);
// Checks if the mark word needs to be preserved
inline bool mark_must_be_preserved() const;