Lines Matching defs:array

126  *                                    2:  object array
127 * 4: boolean array
128 * 5: char array
129 * 6: float array
130 * 7: double array
131 * 8: byte array
132 * 9: short array
133 * 10: int array
134 * 11: long array
261 * HPROF_GC_OBJ_ARRAY_DUMP dump of an object array
263 * id array object ID
266 * id array class ID
269 * HPROF_GC_PRIM_ARRAY_DUMP dump of a primitive array
271 * id array object ID
275 * 4: boolean array
276 * 5: char array
277 * 6: float array
278 * 7: double array
279 * 8: byte array
280 * 9: short array
281 * 10: int array
282 * 11: long array
628 // array classes
630 // creates HPROF_GC_CLASS_DUMP record for a given primitive array
631 // class (and each multi-dimensional array class too)
634 // creates HPROF_GC_OBJ_ARRAY_DUMP record for the given object array
635 static void dump_object_array(DumpWriter* writer, objArrayOop array);
636 // creates HPROF_GC_PRIM_ARRAY_DUMP record for the given type array
637 static void dump_prim_array(DumpWriter* writer, typeArrayOop array);
901 // its array classes
941 // array classes
951 // super class of array classes is java.lang.Object
967 // get the array class for the next rank
972 // creates HPROF_GC_CLASS_DUMP record for a given primitive array
973 // class (and each multi-dimensional array class too)
975 // array classes
983 // super class of array classes is java.lang.Object
999 // get the array class for the next rank
1004 // creates HPROF_GC_OBJ_ARRAY_DUMP record for the given object array
1005 void DumperSupport::dump_object_array(DumpWriter* writer, objArrayOop array) {
1008 if (array->klass() == Universe::systemObjArrayKlassObj()) return;
1011 writer->write_objectID(array);
1013 writer->write_u4((u4)array->length());
1015 // array class ID
1016 writer->write_classID(Klass::cast(array->klass()));
1019 for (int index=0; index<array->length(); index++) {
1020 oop o = array->obj_at(index);
1026 for (int i=0; i<Array->length(); i++) { writer->write_##Size((Size)array->Type##_at(i)); }
1029 // creates HPROF_GC_PRIM_ARRAY_DUMP record for the given type array
1030 void DumperSupport::dump_prim_array(DumpWriter* writer, typeArrayOop array) {
1031 BasicType type = typeArrayKlass::cast(array->klass())->element_type();
1034 writer->write_objectID(array);
1036 writer->write_u4((u4)array->length());
1040 if (array->length() == 0) {
1045 int length_in_bytes = array->length() * type2aelembytes(type);
1051 WRITE_ARRAY(array, int, u4);
1053 writer->write_raw((void*)(array->int_at_addr(0)), length_in_bytes);
1058 writer->write_raw((void*)(array->byte_at_addr(0)), length_in_bytes);
1063 WRITE_ARRAY(array, char, u2);
1065 writer->write_raw((void*)(array->char_at_addr(0)), length_in_bytes);
1071 WRITE_ARRAY(array, short, u2);
1073 writer->write_raw((void*)(array->short_at_addr(0)), length_in_bytes);
1079 WRITE_ARRAY(array, bool, u1);
1081 writer->write_raw((void*)(array->bool_at_addr(0)), length_in_bytes);
1087 WRITE_ARRAY(array, long, u8);
1089 writer->write_raw((void*)(array->long_at_addr(0)), length_in_bytes);
1099 for (int i=0; i<array->length(); i++) {
1100 dump_float( writer, array->float_at(i) );
1105 for (int i=0; i<array->length(); i++) {
1106 dump_double( writer, array->double_at(i) );
1316 // create a HPROF_GC_OBJ_ARRAY_DUMP record for each object array
1321 // create a HPROF_GC_PRIM_ARRAY_DUMP record for each type array
1370 // (and each array class too)
1374 // array (and each multi-dimensional array too)
1537 // array classes)
1544 // write a HPROF_LOAD_CLASS for the class and each array class
1564 // write a LOAD_CLASS record for the array type (if it exists)
1575 // array (and each multi-dimensional array too)