JDK-8258800 : Deprecate -XX:+AlwaysLockClassLoader
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-21
  • Updated: 2021-01-12
  • Resolved: 2021-01-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b04Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Description
This option was added when parallel capable class loading was added in JDK 7 to help users debug their parallel capable class loaders that might have bugs.  Allowing general access to this functionality can cause deadlocks, so this shouldn't be an option for users.  Nor is is useful for debugging parallel capable class loaders, since it may only hide their bugs.
This option is untested (and should be because it'll cause deadlocks) and should be deprecated in 17, obsoleted in 18 and removed in 19.

From: http://openjdk.java.net/groups/core-libs/ClassLoaderProposal.html

VM Flags for early access testing
AlwaysLockClassLoader - default false. Provided for ParallelClassLoader that has a bug in handling multiple threads in parallel. Expected to ship in product.
Comments
Changeset: 7f04d23b Author: Coleen Phillimore <coleenp@openjdk.org> Date: 2021-01-04 16:44:39 +0000 URL: https://git.openjdk.java.net/jdk/commit/7f04d23b
04-01-2021