8176204: [DOC] ThreadMXBean Fails to Detect ReentrantReadWriteLock Deadlock
Summary: Update LockInfo class javadoc for own-able synchronizer examples
Reviewed-by: dholmes
Contributed-by: amit.sapre@oracle.com
--- a/jdk/src/java.management/share/classes/java/lang/management/LockInfo.java Sun Apr 09 14:25:07 2017 -0400
+++ b/jdk/src/java.management/share/classes/java/lang/management/LockInfo.java Mon Apr 10 12:15:13 2017 +0530
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2017, 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
@@ -38,8 +38,8 @@
* a synchronizer that may be exclusively owned by a thread and uses
* {@link AbstractOwnableSynchronizer AbstractOwnableSynchronizer}
* (or its subclass) to implement its synchronization property.
- * {@link ReentrantLock ReentrantLock} and
- * {@link ReentrantReadWriteLock ReentrantReadWriteLock} are
+ * {@link ReentrantLock ReentrantLock} and the write-lock (but not
+ * the read-lock) of {@link ReentrantReadWriteLock ReentrantReadWriteLock} are
* two examples of ownable synchronizers provided by the platform.
*
* <h3><a name="MappedType">MXBean Mapping</a></h3>