Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompilerToVM.cpp @ 5618:60ca7d300b8f
reverted to using fast_new_instance_init_check_id stub to use fast TLAB refilling
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 15 Jun 2012 13:16:43 +0200 |
parents | e79b593e0632 |
children | 7d25723b7699 |
comparison
equal
deleted
inserted
replaced
5617:19ca9e48cd31 | 5618:60ca7d300b8f |
---|---|
814 set_int(env, config, "dataLayoutCellsOffset", in_bytes(DataLayout::cell_offset(0))); | 814 set_int(env, config, "dataLayoutCellsOffset", in_bytes(DataLayout::cell_offset(0))); |
815 set_int(env, config, "dataLayoutCellSize", DataLayout::cell_size); | 815 set_int(env, config, "dataLayoutCellSize", DataLayout::cell_size); |
816 set_int(env, config, "bciProfileWidth", BciProfileWidth); | 816 set_int(env, config, "bciProfileWidth", BciProfileWidth); |
817 set_int(env, config, "typeProfileWidth", TypeProfileWidth); | 817 set_int(env, config, "typeProfileWidth", TypeProfileWidth); |
818 | 818 |
819 // We use the fast path stub so that we get TLAB refills whenever possible instead of | |
820 // unconditionally allocating directly from the heap (which the slow path does). | |
821 // The stub must also do initialization when the compiled check fails. | |
822 Runtime1::StubID newInstanceStub = Runtime1::fast_new_instance_init_check_id; | |
823 | |
819 set_long(env, config, "debugStub", VmIds::addStub((address)warning)); | 824 set_long(env, config, "debugStub", VmIds::addStub((address)warning)); |
820 set_long(env, config, "instanceofStub", VmIds::addStub(Runtime1::entry_for(Runtime1::slow_subtype_check_id))); | 825 set_long(env, config, "instanceofStub", VmIds::addStub(Runtime1::entry_for(Runtime1::slow_subtype_check_id))); |
821 set_long(env, config, "verifyPointerStub", VmIds::addStub(Runtime1::entry_for(Runtime1::graal_verify_pointer_id))); | 826 set_long(env, config, "verifyPointerStub", VmIds::addStub(Runtime1::entry_for(Runtime1::graal_verify_pointer_id))); |
822 set_long(env, config, "newInstanceStub", VmIds::addStub(Runtime1::entry_for(Runtime1::new_instance_id))); | 827 set_long(env, config, "newInstanceStub", VmIds::addStub(Runtime1::entry_for(newInstanceStub))); |
823 set_long(env, config, "newTypeArrayStub", VmIds::addStub(Runtime1::entry_for(Runtime1::new_type_array_id))); | 828 set_long(env, config, "newTypeArrayStub", VmIds::addStub(Runtime1::entry_for(Runtime1::new_type_array_id))); |
824 set_long(env, config, "newObjectArrayStub", VmIds::addStub(Runtime1::entry_for(Runtime1::new_object_array_id))); | 829 set_long(env, config, "newObjectArrayStub", VmIds::addStub(Runtime1::entry_for(Runtime1::new_object_array_id))); |
825 set_long(env, config, "newMultiArrayStub", VmIds::addStub(Runtime1::entry_for(Runtime1::new_multi_array_id))); | 830 set_long(env, config, "newMultiArrayStub", VmIds::addStub(Runtime1::entry_for(Runtime1::new_multi_array_id))); |
826 set_long(env, config, "loadKlassStub", VmIds::addStub(Runtime1::entry_for(Runtime1::load_klass_patching_id))); | 831 set_long(env, config, "loadKlassStub", VmIds::addStub(Runtime1::entry_for(Runtime1::load_klass_patching_id))); |
827 set_long(env, config, "accessFieldStub", VmIds::addStub(Runtime1::entry_for(Runtime1::access_field_patching_id))); | 832 set_long(env, config, "accessFieldStub", VmIds::addStub(Runtime1::entry_for(Runtime1::access_field_patching_id))); |