-
Bug
-
Resolution: Fixed
-
P3
-
5.0u4, 6u1
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2144703 | 5.0u12 | John Rose | P3 | Resolved | Fixed | b01 |
There is a bug in the inlining of Class.getModifiers. The result type of Class.getModifiers is labeled as a "boolean" to the optimizer instead of "int". An inlined isFinal call masks with 16 - which against a boolean always returns a 0 (masking against an int produces the obvious extract instructions). Bug can be reproduced by running JCK test "javasoft.sqe.tests.api.java.lang.Class.GetModifiersTests -TestCaseID ALL"
using C2 -Xcomp. A suggested fix is provided.
###@###.### 2005-07-15 00:08:19 GMT
using C2 -Xcomp. A suggested fix is provided.
###@###.### 2005-07-15 00:08:19 GMT
- backported by
-
JDK-2144703 The result type of Class.getModifiers is labeled as a "boolean" to the optimizer instead of "int"
- Resolved
- duplicates
-
JDK-6489569 One particular intrinsic is incorrectly generated, and hence an inconsistent IR.
- Closed
- relates to
-
JDK-6461827 Performance: java.lang.Class.isAssignable
- Resolved