< prev index next >

test/hotspot/gtest/oops/test_typeArrayOop.cpp

Print this page
@@ -34,11 +34,18 @@
    memset(mem, 0, ARRAY_SIZE(mem));
  
    char* addr = align_up(mem, 16);
  
    typeArrayOop o = (typeArrayOop) cast_to_oop(addr);
-   o->set_klass(Universe::boolArrayKlassObj());
+ #ifdef _LP64
+   if (UseCompactObjectHeaders) {
+     o->set_mark(Universe::boolArrayKlassObj()->prototype_header());
+   } else
+ #endif
+   {
+     o->set_klass(Universe::boolArrayKlassObj());
+   }
    o->set_length(10);
  
  
    ASSERT_EQ((jboolean)0, o->bool_at(0));
    ASSERT_EQ((jboolean)0, o->bool_at(1));
< prev index next >