src/share/vm/memory/oopFactory.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/memory/oopFactory.cpp Fri Oct 30 18:24:03 2015
--- new/src/share/vm/memory/oopFactory.cpp Fri Oct 30 18:24:02 2015
*** 56,71 ****
--- 56,71 ----
typeArrayOop result = type_asArrayKlass->allocate(length, THREAD);
return result;
}
// Create a Java array that points to metadata.
! // As far as Java code is concerned, a metaData array is either an array of
! // int or long depending on pointer size. Only a few things use this, like
- // stack trace elements in Throwable. They cast Method* into this type.
! // As far as Java code is concerned, a metadata array is either an array of
! // int or long depending on pointer size. Only stack trace elements in Throwable use this.
! // They cast Method* into this type.
// Note:can't point to symbols because there's no way to unreference count
// them when this object goes away.
! typeArrayOop oopFactory::new_metaDataArray(int length, TRAPS) {
! typeArrayOop oopFactory::new_metadataArray(int length, TRAPS) {
BasicType type = LP64_ONLY(T_LONG) NOT_LP64(T_INT);
Klass* type_asKlassOop = Universe::typeArrayKlassObj(type);
TypeArrayKlass* type_asArrayKlass = TypeArrayKlass::cast(type_asKlassOop);
typeArrayOop result = type_asArrayKlass->allocate_common(length, true, THREAD);
return result;
src/share/vm/memory/oopFactory.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File