equal
deleted
inserted
replaced
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); |