src/hotspot/share/runtime/objectMonitor.inline.hpp
changeset 47634 6a0c42c40cd1
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
equal deleted inserted replaced
47633:1c21c60f51bf 47634:6a0c42c40cd1
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    32   return 0;
    32   return 0;
    33 }
    33 }
    34 
    34 
    35 inline markOop ObjectMonitor::header() const {
    35 inline markOop ObjectMonitor::header() const {
    36   return _header;
    36   return _header;
       
    37 }
       
    38 
       
    39 inline volatile markOop* ObjectMonitor::header_addr() {
       
    40   assert((intptr_t)this == (intptr_t)&_header, "sync code expects this");
       
    41   return &_header;
    37 }
    42 }
    38 
    43 
    39 inline void ObjectMonitor::set_header(markOop hdr) {
    44 inline void ObjectMonitor::set_header(markOop hdr) {
    40   _header = hdr;
    45   _header = hdr;
    41 }
    46 }