-
Notifications
You must be signed in to change notification settings - Fork 141
8277444: Data race between JvmtiClassFileReconstituter::copy_bytecodes and class linking #2232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Waiting to request maintainer approval until backport is merged in newer JDKs |
👋 Welcome back chadrako! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
This backport pull request has now been updated with issue from the original commit. |
|
/approval request A clean backport that fixes a race condition that occurs when a class is simultaneously retransformed via the Instrumentation API and linked. This can lead to invalid bytecode which will cause a VerifyError. Even worse, if class verifying is turned off, which it is by default for java.* classes, this will cause the JVM to crash/segfault. The included test test/jdk/java/lang/instrument/RetransformBigClassTest.java fails before the patch and passes after |
Hi @chadrako |
A clean backport of https://bugs.openjdk.org/browse/JDK-8277444
This fixes a race condition that occurs when a class is simultaneously retransformed via the Instrumentation API and linked. This can lead to invalid bytecode which will cause a VerifyError. Even worse, if class verifying is turned off, which it is by default for java.* classes, this will cause the JVM to crash/segfault.
The included test
test/jdk/java/lang/instrument/RetransformBigClassTest.java fails
before the patch and passes after`Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/2232/head:pull/2232
$ git checkout pull/2232
Update a local copy of the PR:
$ git checkout pull/2232
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/2232/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2232
View PR using the GUI difftool:
$ git pr show -t 2232
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/2232.diff
Using Webrev
Link to Webrev Comment