8272723: Don't use Access API to access primitive fields

Reviewed-by: stefank, eosterlund
This commit is contained in:
Roman Kennke 2021-10-11 10:37:54 +00:00
parent 49f8ce6e9c
commit 3edee1e1fe
9 changed files with 106 additions and 194 deletions

View file

@ -124,11 +124,8 @@ class oopDesc {
inline oop as_oop() const { return const_cast<oopDesc*>(this); }
public:
// field addresses in oop
inline void* field_addr(int offset) const;
// Need this as public for garbage collection.
template <class T> inline T* obj_field_addr(int offset) const;
template<typename T>
inline T* field_addr(int offset) const;
template <typename T> inline size_t field_offset(T* p) const;