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
8260589: Crash in JfrTraceIdLoadBarrier::load(_jclass*) #2295
Conversation
👋 Welcome back ddong! A progress list of the required criteria for merging this PR into |
/label hotspot-jfr |
@D-D-H |
Webrevs
|
/label remove hotspot |
@D-D-H |
Add some information to facilitate this issue to be reviewed more easily. We will get a crash if we run the above code,, and the stack trace is as follows:
The root cause is that basic types, including void, do not have corresponding Klass objects inside the virtual machine, so call java_lang_Class::as_Klass will return NULL and crash in JfrTraceIdLoadBarrier::load finally. My solution is adding two serializers, one for the names of basic types, and one for basic types. I am not sure about the setting of the class loader is right or not, I currently set it to 0 directly. |
JVM.getClassId() doesn't seem to be used, so I didn't modify the implementation of the corresponding intrinsics. |
Gentle ping. |
Mailing list message from Denghui Dong on hotspot-jfr-dev: Gentle ping. Denghui Dong ------------------------------------------------------------------ On Tue, 2 Feb 2021 15:06:14 GMT, Denghui Dong <ddong at openjdk.org> wrote:
Gentle ping. ------------- PR: https://git.openjdk.java.net/jdk/pull/2295 |
Mailing list message from Denghui Dong on hotspot-jfr-dev: Ping again. Could anyone review this fix? This problem is really occurred in our production environment(JDK 8), so I want to fix it and backport it then. Denghui Gentle ping. Denghui Dong On Tue, 2 Feb 2021 15:06:14 GMT, Denghui Dong <ddong at openjdk.org> wrote:
Gentle ping. ------------- PR: https://git.openjdk.java.net/jdk/pull/2295 |
Mailing list message from Markus Gronlund on hotspot-jfr-dev: Hi Denghui, Thanks for reporting. I am looking into it, also exploring if we can perhaps fix it in some way to help reduce verbosity. Thanks -----Original Message----- Ping again. Could anyone review this fix? This problem is really occurred in our production environment(JDK 8), so I want to fix it and backport it then. Denghui Gentle ping. Denghui Dong On Tue, 2 Feb 2021 15:06:14 GMT, Denghui Dong <ddong at openjdk.org> wrote:
Gentle ping. ------------- PR: https://git.openjdk.java.net/jdk/pull/2295 |
another PR(#2738) is created for the same issue. |
hi,
Could I have a review of this fix?
If we run the following code snippet, will get a crash
Progress
Issue
Download
$ git fetch https://git.openjdk.java.net/jdk pull/2295/head:pull/2295
$ git checkout pull/2295