-
Bug
-
Resolution: Fixed
-
P5
-
9, 10, 11, 12, 13, 14
-
b08
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8246828 | 13.0.4 | Tobias Hartmann | P5 | Resolved | Fixed | b05 |
JDK-8243367 | 11.0.8-oracle | Tobias Hartmann | P5 | Resolved | Fixed | b04 |
JDK-8245079 | 11.0.8 | Tobias Hartmann | P5 | Resolved | Fixed | b04 |
This bug relates to JDK-8155638 where bitmaps where cleared twice.
There are places where we don't clear the bitmaps twice, but the initial clearing is unnecessary, since the following code will set all bits.
See, for example:
http://cr.openjdk.java.net/~stefank/8155638/webrev.01/src/share/vm/c1/c1_IR.cpp.udiff.html
where _requires_phi_function is cleared even when all bits are going to be set to 1.
and:
http://cr.openjdk.java.net/~stefank/8155638/webrev.01/src/share/vm/compiler/methodLiveness.cpp.frames.html
in MethodLiveness::BasicBlock::get_liveness_at
1010 ResourceBitMap g(_gen.size()); g.set_from(_gen);
1011 ResourceBitMap k(_kill.size()); k.set_from(_kill);
where we first clear the bitmap, then copy all bits with set_from. Before G1 was introduced, the unnecessary clearing was not done.
There are places where we don't clear the bitmaps twice, but the initial clearing is unnecessary, since the following code will set all bits.
See, for example:
http://cr.openjdk.java.net/~stefank/8155638/webrev.01/src/share/vm/c1/c1_IR.cpp.udiff.html
where _requires_phi_function is cleared even when all bits are going to be set to 1.
and:
http://cr.openjdk.java.net/~stefank/8155638/webrev.01/src/share/vm/compiler/methodLiveness.cpp.frames.html
in MethodLiveness::BasicBlock::get_liveness_at
1010 ResourceBitMap g(_gen.size()); g.set_from(_gen);
1011 ResourceBitMap k(_kill.size()); k.set_from(_kill);
where we first clear the bitmap, then copy all bits with set_from. Before G1 was introduced, the unnecessary clearing was not done.
- backported by
-
JDK-8243367 Resource allocated BitMaps are often cleared unnecessarily
-
- Resolved
-
-
JDK-8245079 Resource allocated BitMaps are often cleared unnecessarily
-
- Resolved
-
-
JDK-8246828 Resource allocated BitMaps are often cleared unnecessarily
-
- Resolved
-
- relates to
-
JDK-8155638 Resource allocated BitMaps are often cleared twice
-
- Resolved
-