Details
-
Bug
-
Resolution: Fixed
-
P4
-
8, 9
-
b55
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8083001 | emb-9 | Filipp Zhinkin | P4 | Resolved | Fixed | team |
JDK-8233341 | openjdk8u242 | Filipp Zhinkin | P4 | Resolved | Fixed | team |
Description
On 02/13/2015 12:39 PM, Filipp Zhinkin wrote:
I've found yet another bug:
NULL-pointer dereferencing in LIR_OpProfileType::print_instr.
LIR_OpProfileType's exact_klass is either a valid ciKlass when we know
it statically,
or a NULL when we don't.
Unfortunately, LIR_OpProfileType::print_instr is dereferencing it
without a NULL-check.
A patch with a fix as well as a hs_err file attached to this mail.
I've decided to print "unknown" exact klass's value in case of NULL to
be consistent
with ciTypeEntries::print_ciklass. Missed whitespaces were also added.
// Personally, I would like to print something that starts with a
character that could not
// be a part of a valid java identifier's name (like <unknown>,
<none>, etc.) in order
// to distinguish special values from "unknown" and "none" classes.
I've found yet another bug:
NULL-pointer dereferencing in LIR_OpProfileType::print_instr.
LIR_OpProfileType's exact_klass is either a valid ciKlass when we know
it statically,
or a NULL when we don't.
Unfortunately, LIR_OpProfileType::print_instr is dereferencing it
without a NULL-check.
A patch with a fix as well as a hs_err file attached to this mail.
I've decided to print "unknown" exact klass's value in case of NULL to
be consistent
with ciTypeEntries::print_ciklass. Missed whitespaces were also added.
// Personally, I would like to print something that starts with a
character that could not
// be a part of a valid java identifier's name (like <unknown>,
<none>, etc.) in order
// to distinguish special values from "unknown" and "none" classes.
Attachments
Issue Links
- backported by
-
JDK-8083001 NULL-pointer dereferencing in LIR_OpProfileType::print_instr
- Resolved
-
JDK-8233341 NULL-pointer dereferencing in LIR_OpProfileType::print_instr
- Resolved
-
JDK-8233933 NULL-pointer dereferencing in LIR_OpProfileType::print_instr
- Resolved