Skip to content

Commit

Permalink
gtest
Browse files Browse the repository at this point in the history
  • Loading branch information
mmyxym committed Nov 1, 2023
1 parent 56982a7 commit 06ed7f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/hotspot/gtest/oops/test_typeArrayOop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ TEST_VM(typeArrayOopDesc, bool_at_put) {
char* addr = align_up(mem, 16);

typeArrayOop o = (typeArrayOop) addr;
o->set_klass(Universe::boolArrayKlassObj());
if (UseCompactObjectHeaders) {
o->set_mark(Universe::boolArrayKlassObj()->prototype_header());
} else {
o->set_klass(Universe::boolArrayKlassObj());
}
o->set_length(10);


Expand Down

0 comments on commit 06ed7f9

Please sign in to comment.