Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8082598 | emb-9 | Stefan Karlsson | P4 | Resolved | Fixed | team |
This is a follow-up cleanup task for the JDK-8075955 patch.
There are a few places where we, unnecessarily, call oopDesc::klass() even though we already have the Klass*.
For example:
void InstanceKlass::oop_pc_follow_contents(oop obj, ParCompactionManager* cm) {
assert(obj != NULL, "can't follow the content of NULL object");
PSParallelCompact::follow_klass(cm, obj->klass());
The call to obj->klass() returns the same address as 'this'.
There are a few places where we, unnecessarily, call oopDesc::klass() even though we already have the Klass*.
For example:
void InstanceKlass::oop_pc_follow_contents(oop obj, ParCompactionManager* cm) {
assert(obj != NULL, "can't follow the content of NULL object");
PSParallelCompact::follow_klass(cm, obj->klass());
The call to obj->klass() returns the same address as 'this'.
- backported by
-
JDK-8082598 Remove unnecessary oopDesc::klass() calls
-
- Resolved
-