Skip to content

Commit

Permalink
Merge pull request #2046 from tajila/jck
Browse files Browse the repository at this point in the history
Check for boolean array when running bastore bytecode
  • Loading branch information
DanHeidinga committed Oct 10, 2018
2 parents 6f122a4 + 71a27ca commit f3607dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/vm/BytecodeInterpreter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5623,6 +5623,9 @@ done:;
I_8 value = (I_8)*(I_32*)_sp;
_pc += 1;
_sp += 3;
if (J9OBJECT_CLAZZ(_currentThread, arrayref) == _vm->booleanArrayClass) {
value &= 1;
}
_objectAccessBarrier.inlineIndexableObjectStoreI8(_currentThread, arrayref, index, value);
}
}
Expand Down

0 comments on commit f3607dd

Please sign in to comment.