< prev index next >

src/share/vm/services/heapDumper.cpp

Print this page
@  rev 12742 : imported patch alpinefixes-copyswapaligned
|

@@ -1132,11 +1132,11 @@
 
   // If the byte ordering is big endian then we can copy most types directly
 
   switch (type) {
     case T_INT : {
-      if (Bytes::is_Java_byte_ordering_different()) {
+      if (Endian::is_Java_byte_ordering_different()) {
         WRITE_ARRAY(array, int, u4, length);
       } else {
         writer->write_raw((void*)(array->int_at_addr(0)), length_in_bytes);
       }
       break;

@@ -1144,35 +1144,35 @@
     case T_BYTE : {
       writer->write_raw((void*)(array->byte_at_addr(0)), length_in_bytes);
       break;
     }
     case T_CHAR : {
-      if (Bytes::is_Java_byte_ordering_different()) {
+      if (Endian::is_Java_byte_ordering_different()) {
         WRITE_ARRAY(array, char, u2, length);
       } else {
         writer->write_raw((void*)(array->char_at_addr(0)), length_in_bytes);
       }
       break;
     }
     case T_SHORT : {
-      if (Bytes::is_Java_byte_ordering_different()) {
+      if (Endian::is_Java_byte_ordering_different()) {
         WRITE_ARRAY(array, short, u2, length);
       } else {
         writer->write_raw((void*)(array->short_at_addr(0)), length_in_bytes);
       }
       break;
     }
     case T_BOOLEAN : {
-      if (Bytes::is_Java_byte_ordering_different()) {
+      if (Endian::is_Java_byte_ordering_different()) {
         WRITE_ARRAY(array, bool, u1, length);
       } else {
         writer->write_raw((void*)(array->bool_at_addr(0)), length_in_bytes);
       }
       break;
     }
     case T_LONG : {
-      if (Bytes::is_Java_byte_ordering_different()) {
+      if (Endian::is_Java_byte_ordering_different()) {
         WRITE_ARRAY(array, long, u8, length);
       } else {
         writer->write_raw((void*)(array->long_at_addr(0)), length_in_bytes);
       }
       break;
< prev index next >