src/share/vm/runtime/basicLock.cpp

changeset 7605
6e8e0bf87bbe
parent 2314
f95d63e2154a
child 7994
04ff2f6cd0eb
equal deleted inserted replaced
7582:9d6eb2757167 7605:6e8e0bf87bbe
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2015, 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.
26 #include "runtime/basicLock.hpp" 26 #include "runtime/basicLock.hpp"
27 #include "runtime/synchronizer.hpp" 27 #include "runtime/synchronizer.hpp"
28 28
29 void BasicLock::print_on(outputStream* st) const { 29 void BasicLock::print_on(outputStream* st) const {
30 st->print("monitor"); 30 st->print("monitor");
31 markOop moop = displaced_header();
32 if (moop != NULL)
33 moop->print_on(st);
31 } 34 }
32 35
33 void BasicLock::move_to(oop obj, BasicLock* dest) { 36 void BasicLock::move_to(oop obj, BasicLock* dest) {
34 // Check to see if we need to inflate the lock. This is only needed 37 // Check to see if we need to inflate the lock. This is only needed
35 // if an object is locked using "this" lightweight monitor. In that 38 // if an object is locked using "this" lightweight monitor. In that

mercurial