mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8229258: Rework markOop and markOopDesc into a simpler mark word value carrier
Reviewed-by: rkennke, coleenp, kbarrett, dcubed
This commit is contained in:
parent
f075a3278b
commit
ae5615c614
132 changed files with 1215 additions and 1236 deletions
|
@ -26,16 +26,22 @@
|
|||
#define SHARE_RUNTIME_BASICLOCK_HPP
|
||||
|
||||
#include "oops/markOop.hpp"
|
||||
#include "runtime/atomic.hpp"
|
||||
#include "runtime/handles.hpp"
|
||||
|
||||
class BasicLock {
|
||||
friend class VMStructs;
|
||||
friend class JVMCIVMStructs;
|
||||
private:
|
||||
volatile markOop _displaced_header;
|
||||
volatile markWord _displaced_header;
|
||||
public:
|
||||
markOop displaced_header() const { return _displaced_header; }
|
||||
void set_displaced_header(markOop header) { _displaced_header = header; }
|
||||
markWord displaced_header() const {
|
||||
return Atomic::load(&_displaced_header);
|
||||
}
|
||||
|
||||
void set_displaced_header(markWord header) {
|
||||
Atomic::store(header, &_displaced_header);
|
||||
}
|
||||
|
||||
void print_on(outputStream* st) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue