mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8158854: Ensure release_store is paired with load_acquire in lock-free code
Reviewed-by: shade, dcubed, zgu
This commit is contained in:
parent
56ff858c45
commit
6db26ca5bf
10 changed files with 87 additions and 23 deletions
|
@ -56,7 +56,9 @@ class ArrayKlass: public Klass {
|
|||
void set_dimension(int dimension) { _dimension = dimension; }
|
||||
|
||||
Klass* higher_dimension() const { return _higher_dimension; }
|
||||
inline Klass* higher_dimension_acquire() const; // load with acquire semantics
|
||||
void set_higher_dimension(Klass* k) { _higher_dimension = k; }
|
||||
inline void release_set_higher_dimension(Klass* k); // store with release semantics
|
||||
Klass** adr_higher_dimension() { return (Klass**)&this->_higher_dimension;}
|
||||
|
||||
Klass* lower_dimension() const { return _lower_dimension; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue