mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8272723: Don't use Access API to access primitive fields
Reviewed-by: stefank, eosterlund
This commit is contained in:
parent
49f8ce6e9c
commit
3edee1e1fe
9 changed files with 106 additions and 194 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue