src/cpu/sparc/vm/templateTable_sparc.cpp
Print this page
rev 146 : [mq]: mixa.layout.patch
*** 23,32 ****
--- 23,34 ----
*/
#include "incls/_precompiled.incl"
#include "incls/_templateTable_sparc.cpp.incl"
+ #error "NYI: mixa.patch not yet implemented for this platform"
+
#ifndef CC_INTERP
#define __ _masm->
//----------------------------------------------------------------------------------------------------
*** 3090,3102 ****
// get instance_size in instanceKlass (already aligned)
//__ ld(RinstanceKlass, Klass::layout_helper_offset_in_bytes() + sizeof(oopDesc), Roffset);
// make sure klass does not have has_finalizer, or is abstract, or interface or java/lang/Class
! __ btst(Klass::_lh_instance_slow_path_bit, Roffset);
__ br(Assembler::notZero, false, Assembler::pn, slow_case);
! __ delayed()->nop();
// allocate the instance
// 1) Try to allocate in the TLAB
// 2) if fail, and the TLAB is not full enough to discard, allocate in the shared Eden
// 3) if the above fails (or is not applicable), go to a slow case
--- 3092,3104 ----
// get instance_size in instanceKlass (already aligned)
//__ ld(RinstanceKlass, Klass::layout_helper_offset_in_bytes() + sizeof(oopDesc), Roffset);
// make sure klass does not have has_finalizer, or is abstract, or interface or java/lang/Class
! __ btst(LayoutHelper::_slow_path_low_bit, Roffset);
__ br(Assembler::notZero, false, Assembler::pn, slow_case);
! __ delayed()->and3(Roffset, ~LayoutHelper::_size_low_mask, Roffset);
// allocate the instance
// 1) Try to allocate in the TLAB
// 2) if fail, and the TLAB is not full enough to discard, allocate in the shared Eden
// 3) if the above fails (or is not applicable), go to a slow case