hotspot/src/share/vm/runtime/synchronizer.cpp
changeset 46271 979ebd346ecf
parent 40664 1ec65b303bb7
child 46342 c871e0f8b02a
equal deleted inserted replaced
46270:2e7898927798 46271:979ebd346ecf
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2016, 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.
  1760   ReleaseJavaMonitorsClosure(Thread* thread) : THREAD(thread) {}
  1760   ReleaseJavaMonitorsClosure(Thread* thread) : THREAD(thread) {}
  1761   void do_monitor(ObjectMonitor* mid) {
  1761   void do_monitor(ObjectMonitor* mid) {
  1762     if (mid->owner() == THREAD) {
  1762     if (mid->owner() == THREAD) {
  1763       if (ObjectMonitor::Knob_VerifyMatch != 0) {
  1763       if (ObjectMonitor::Knob_VerifyMatch != 0) {
  1764         ResourceMark rm;
  1764         ResourceMark rm;
  1765         Handle obj((oop) mid->object());
  1765         Handle obj(THREAD, (oop) mid->object());
  1766         tty->print("INFO: unexpected locked object:");
  1766         tty->print("INFO: unexpected locked object:");
  1767         javaVFrame::print_locked_object_class_name(tty, obj, "locked");
  1767         javaVFrame::print_locked_object_class_name(tty, obj, "locked");
  1768         fatal("exiting JavaThread=" INTPTR_FORMAT
  1768         fatal("exiting JavaThread=" INTPTR_FORMAT
  1769               " unexpectedly owns ObjectMonitor=" INTPTR_FORMAT,
  1769               " unexpectedly owns ObjectMonitor=" INTPTR_FORMAT,
  1770               p2i(THREAD), p2i(mid));
  1770               p2i(THREAD), p2i(mid));