8155638: Resource allocated BitMaps are often cleared twice

Reviewed-by: neliasso, kvn
This commit is contained in:
Stefan Karlsson 2016-06-08 11:15:49 +02:00
parent 47309c3715
commit 23e05cabc5
9 changed files with 9 additions and 40 deletions

View file

@ -1387,7 +1387,6 @@ Instruction* LIRGenerator::instruction_for_vreg(int reg_num) {
void LIRGenerator::set_vreg_flag(int vreg_num, VregFlag f) {
if (_vreg_flags.size_in_bits() == 0) {
BitMap2D temp(100, num_vreg_flags);
temp.clear();
_vreg_flags = temp;
}
_vreg_flags.at_put_grow(vreg_num, f, true);