mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8192003: Refactor weak references in StringTable to use the Access API
Reviewed-by: pliden, dholmes, coleenp
This commit is contained in:
parent
add0d817f5
commit
c54ef2b296
7 changed files with 72 additions and 55 deletions
|
@ -28,6 +28,7 @@
|
|||
#include "gc/shared/specialized_oop_closures.hpp"
|
||||
#include "memory/iterator.hpp"
|
||||
#include "memory/memRegion.hpp"
|
||||
#include "oops/access.hpp"
|
||||
#include "oops/metadata.hpp"
|
||||
#include "utilities/macros.hpp"
|
||||
|
||||
|
@ -178,6 +179,8 @@ class oopDesc {
|
|||
static inline void encode_store_heap_oop(oop* p, oop v);
|
||||
|
||||
// Access to fields in a instanceOop through these methods.
|
||||
template <DecoratorSet decorator>
|
||||
oop obj_field_access(int offset) const;
|
||||
oop obj_field(int offset) const;
|
||||
void obj_field_put(int offset, oop value);
|
||||
void obj_field_put_raw(int offset, oop value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue