Exemplo n.º 1
0
 public long getObjectSize() {
   ArrayKlass klass = (ArrayKlass) getKlass();
   // We have to fetch the length of the array, shift (multiply) it
   // appropriately, up to wordSize, add the header, and align to
   // object size.
   long s = getLength() << klass.getLog2ElementSize();
   s += klass.getArrayHeaderInBytes();
   s = Oop.alignObjectSize(s);
   return s;
 }
Exemplo n.º 2
0
 public void iterateFields(OopVisitor visitor, boolean doVMFields) {
   super.iterateFields(visitor, doVMFields);
   if (doVMFields) {
     visitor.doOop(elementKlass, true);
     visitor.doOop(bottomKlass, true);
   }
 }
Exemplo n.º 3
0
 public void iterateFields(OopVisitor visitor, boolean doVMFields) {
   super.iterateFields(visitor, doVMFields);
   if (doVMFields) {
     visitor.doCInt(maxLength, true);
   }
 }