public final Object newInstance(VmType cls, int size) { testInited(); if (cls.isArray()) { throw new IllegalArgumentException("Cannot instantiate an array like this"); } if (cls.isInterface()) { throw new IllegalArgumentException("Cannot instantiate an interface"); }  final Object obj = allocObject((VmNormalClass) cls, size); if (obj == null) { Unsafe.debug("Out of memory"); throw OOME; } return obj;
public final Object newInstance(VmType cls) { cls.link(); return newInstance(cls, ((VmNormalClass)cls).getObjectSize());
	public final Object newInstance(VmType cls, int size) {		testInited();		if (cls.isArray()) {			throw new IllegalArgumentException("Cannot instantiate an array like this");		}		if (cls.isInterface()) {			throw new IllegalArgumentException("Cannot instantiate an interface");		}				final Object obj = allocObject((VmNormalClass) cls, size);		if (obj == null) {			Unsafe.debug("Out of memory");			throw OOME;		}		return obj;	}