equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 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. |
63 static void slow_exit(oop obj, BasicLock* lock, Thread* THREAD); |
63 static void slow_exit(oop obj, BasicLock* lock, Thread* THREAD); |
64 |
64 |
65 // Used only to handle jni locks or other unmatched monitor enter/exit |
65 // Used only to handle jni locks or other unmatched monitor enter/exit |
66 // Internally they will use heavy weight monitor. |
66 // Internally they will use heavy weight monitor. |
67 static void jni_enter(Handle obj, TRAPS); |
67 static void jni_enter(Handle obj, TRAPS); |
68 static bool jni_try_enter(Handle obj, Thread* THREAD); // Implements Unsafe.tryMonitorEnter |
|
69 static void jni_exit(oop obj, Thread* THREAD); |
68 static void jni_exit(oop obj, Thread* THREAD); |
70 |
69 |
71 // Handle all interpreter, compiler and jni cases |
70 // Handle all interpreter, compiler and jni cases |
72 static int wait(Handle obj, jlong millis, TRAPS); |
71 static int wait(Handle obj, jlong millis, TRAPS); |
73 static void notify(Handle obj, TRAPS); |
72 static void notify(Handle obj, TRAPS); |