8229258: Rework markOop and markOopDesc into a simpler mark word value carrier

Reviewed-by: rkennke, coleenp, kbarrett, dcubed
This commit is contained in:
Stefan Karlsson 2019-08-06 10:48:21 +02:00
parent f075a3278b
commit ae5615c614
132 changed files with 1215 additions and 1236 deletions

View file

@ -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;