equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2014, 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. |
66 static void jni_enter (Handle obj, TRAPS); |
66 static void jni_enter (Handle obj, TRAPS); |
67 static bool jni_try_enter(Handle obj, Thread* THREAD); // Implements Unsafe.tryMonitorEnter |
67 static bool jni_try_enter(Handle obj, Thread* THREAD); // Implements Unsafe.tryMonitorEnter |
68 static void jni_exit (oop obj, Thread* THREAD); |
68 static void jni_exit (oop obj, Thread* THREAD); |
69 |
69 |
70 // Handle all interpreter, compiler and jni cases |
70 // Handle all interpreter, compiler and jni cases |
71 static void wait (Handle obj, jlong millis, TRAPS); |
71 static int wait (Handle obj, jlong millis, TRAPS); |
72 static void notify (Handle obj, TRAPS); |
72 static void notify (Handle obj, TRAPS); |
73 static void notifyall (Handle obj, TRAPS); |
73 static void notifyall (Handle obj, TRAPS); |
74 |
74 |
75 // Special internal-use-only method for use by JVM infrastructure |
75 // Special internal-use-only method for use by JVM infrastructure |
76 // that needs to wait() on a java-level object but that can't risk |
76 // that needs to wait() on a java-level object but that can't risk |