src/hotspot/share/runtime/objectMonitor.cpp
changeset 53557 4cfe0e5a3b79
parent 52450 2790da836dc3
child 54609 04857e2cd509
equal deleted inserted replaced
53556:f3546d51ce9c 53557:4cfe0e5a3b79
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2019, 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.
  1882 PerfCounter * ObjectMonitor::_sync_Deflations                  = NULL;
  1882 PerfCounter * ObjectMonitor::_sync_Deflations                  = NULL;
  1883 PerfLongVariable * ObjectMonitor::_sync_MonExtant              = NULL;
  1883 PerfLongVariable * ObjectMonitor::_sync_MonExtant              = NULL;
  1884 
  1884 
  1885 // One-shot global initialization for the sync subsystem.
  1885 // One-shot global initialization for the sync subsystem.
  1886 // We could also defer initialization and initialize on-demand
  1886 // We could also defer initialization and initialize on-demand
  1887 // the first time we call inflate().  Initialization would
  1887 // the first time we call ObjectSynchronizer::inflate().
  1888 // be protected - like so many things - by the MonitorCache_lock.
  1888 // Initialization would be protected - like so many things - by
       
  1889 // the MonitorCache_lock.
  1889 
  1890 
  1890 void ObjectMonitor::Initialize() {
  1891 void ObjectMonitor::Initialize() {
  1891   assert(!InitDone, "invariant");
  1892   assert(!InitDone, "invariant");
  1892 
  1893 
  1893   if (!os::is_MP()) {
  1894   if (!os::is_MP()) {