hotspot/src/share/vm/services/threadService.cpp
changeset 46271 979ebd346ecf
parent 40655 9f644073d3a0
child 46329 53ccc37bda19
equal deleted inserted replaced
46270:2e7898927798 46271:979ebd346ecf
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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.
   164       obj = (oop) enter_obj->object();
   164       obj = (oop) enter_obj->object();
   165     }
   165     }
   166     // If obj == NULL, then ObjectMonitor is raw which doesn't count.
   166     // If obj == NULL, then ObjectMonitor is raw which doesn't count.
   167   }
   167   }
   168 
   168 
   169   Handle h(obj);
   169   Handle h(Thread::current(), obj);
   170   return h;
   170   return h;
   171 }
   171 }
   172 
   172 
   173 bool ThreadService::set_thread_monitoring_contention(bool flag) {
   173 bool ThreadService::set_thread_monitoring_contention(bool flag) {
   174   MutexLocker m(Management_lock);
   174   MutexLocker m(Management_lock);