RFR: 8296472: Remove ObjectLocker around appendToClassPathForInstrumentation call [v3]

David Holmes dholmes at openjdk.org
Tue Nov 8 04:25:27 UTC 2022


On Mon, 7 Nov 2022 20:40:33 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> This patch moves the acquisition of the boot class loader lock out of the JVM and into the Java function.
>> Tested with tier1-4, and jvmti and jdi tests locally.
>
> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   really revert the file

Note the loader involved need not be our own default platform loader and we don't know how a custom system loader might operate. The specification for this says nothing about thread-safety, nor that the VM will do any locking, so I think it is okay to remove it - but it is a change in behaviour that should be documented by a CSR request.

-------------

PR: https://git.openjdk.org/jdk/pull/11023


More information about the serviceability-dev mailing list