8054494: Remove sun.misc.Unsafe.monitorEnter, monitorExit and tryMonitorEnter

Co-authored-by: Filipp Zhinkin <filipp.zhinkin@gmail.com>
Reviewed-by: dholmes, coleenp
This commit is contained in:
Paul Sandoz 2015-01-15 11:18:20 +01:00
parent dd5f249290
commit bfe8fc7433
4 changed files with 7 additions and 83 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -65,7 +65,6 @@ class ObjectSynchronizer : AllStatic {
// Used only to handle jni locks or other unmatched monitor enter/exit
// Internally they will use heavy weight monitor.
static void jni_enter(Handle obj, TRAPS);
static bool jni_try_enter(Handle obj, Thread* THREAD); // Implements Unsafe.tryMonitorEnter
static void jni_exit(oop obj, Thread* THREAD);
// Handle all interpreter, compiler and jni cases