< prev index next >
src/hotspot/share/c1/c1_Runtime1.cpp
Print this page
*** 119,128 ****
--- 119,129 ----
int Runtime1::_new_type_array_slowcase_cnt = 0;
int Runtime1::_new_object_array_slowcase_cnt = 0;
int Runtime1::_new_instance_slowcase_cnt = 0;
int Runtime1::_new_multi_array_slowcase_cnt = 0;
int Runtime1::_load_flattened_array_slowcase_cnt = 0;
+ int Runtime1::_store_flattened_array_slowcase_cnt = 0;
int Runtime1::_monitorenter_slowcase_cnt = 0;
int Runtime1::_monitorexit_slowcase_cnt = 0;
int Runtime1::_patch_code_slowcase_cnt = 0;
int Runtime1::_throw_range_check_exception_count = 0;
int Runtime1::_throw_index_exception_count = 0;
*** 414,424 ****
thread->set_vm_result(obj);
JRT_END
JRT_ENTRY(void, Runtime1::load_flattened_array(JavaThread* thread, valueArrayOopDesc* array, int index))
! NOT_PRODUCT(_new_multi_array_slowcase_cnt++;)
Klass* klass = array->klass();
assert(klass->is_valueArray_klass(), "expected value array oop");
assert(array->length() > 0 && index < array->length(), "already checked");
ValueArrayKlass* vaklass = ValueArrayKlass::cast(klass);
--- 415,425 ----
thread->set_vm_result(obj);
JRT_END
JRT_ENTRY(void, Runtime1::load_flattened_array(JavaThread* thread, valueArrayOopDesc* array, int index))
! NOT_PRODUCT(_load_flattened_array_slowcase_cnt++;)
Klass* klass = array->klass();
assert(klass->is_valueArray_klass(), "expected value array oop");
assert(array->length() > 0 && index < array->length(), "already checked");
ValueArrayKlass* vaklass = ValueArrayKlass::cast(klass);
*** 434,443 ****
--- 435,462 ----
vaklass->element_byte_size(), true, false);
thread->set_vm_result(obj);
JRT_END
+ JRT_ENTRY(void, Runtime1::store_flattened_array(JavaThread* thread, valueArrayOopDesc* array, int index, oopDesc* value))
+ NOT_PRODUCT(_store_flattened_array_slowcase_cnt++;)
+ if (value == NULL) {
+ SharedRuntime::throw_and_post_jvmti_exception(thread, vmSymbols::java_lang_NullPointerException());
+ } else {
+ Klass* klass = array->klass();
+ assert(klass->is_valueArray_klass(), "expected value array");
+ assert(ArrayKlass::cast(klass)->element_klass() == value->klass(), "Store type incorrect");
+
+ ValueArrayKlass* vaklass = ValueArrayKlass::cast(klass);
+ ValueKlass* vklass = vaklass->element_klass();
+ const int lh = vaklass->layout_helper();
+ vklass->value_store(vklass->data_for_oop(value), array->value_at_addr(index, lh),
+ vaklass->element_byte_size(), true, false);
+ }
+ JRT_END
+
+
JRT_ENTRY(void, Runtime1::unimplemented_entry(JavaThread* thread, StubID id))
tty->print_cr("Runtime1::entry_for(%d) returned unimplemented entry point", id);
JRT_END
*** 1522,1532 ****
tty->print_cr(" _new_type_array_slowcase_cnt: %d", _new_type_array_slowcase_cnt);
tty->print_cr(" _new_object_array_slowcase_cnt: %d", _new_object_array_slowcase_cnt);
tty->print_cr(" _new_instance_slowcase_cnt: %d", _new_instance_slowcase_cnt);
tty->print_cr(" _new_multi_array_slowcase_cnt: %d", _new_multi_array_slowcase_cnt);
! tty->print_cr(" _load_flattened_array_slowcase_cnt:%d", _load_flattened_array_slowcase_cnt);
tty->print_cr(" _monitorenter_slowcase_cnt: %d", _monitorenter_slowcase_cnt);
tty->print_cr(" _monitorexit_slowcase_cnt: %d", _monitorexit_slowcase_cnt);
tty->print_cr(" _patch_code_slowcase_cnt: %d", _patch_code_slowcase_cnt);
tty->print_cr(" _throw_range_check_exception_count: %d:", _throw_range_check_exception_count);
--- 1541,1552 ----
tty->print_cr(" _new_type_array_slowcase_cnt: %d", _new_type_array_slowcase_cnt);
tty->print_cr(" _new_object_array_slowcase_cnt: %d", _new_object_array_slowcase_cnt);
tty->print_cr(" _new_instance_slowcase_cnt: %d", _new_instance_slowcase_cnt);
tty->print_cr(" _new_multi_array_slowcase_cnt: %d", _new_multi_array_slowcase_cnt);
! tty->print_cr(" _load_flattened_array_slowcase_cnt: %d", _load_flattened_array_slowcase_cnt);
! tty->print_cr(" _store_flattened_array_slowcase_cnt:%d", _store_flattened_array_slowcase_cnt);
tty->print_cr(" _monitorenter_slowcase_cnt: %d", _monitorenter_slowcase_cnt);
tty->print_cr(" _monitorexit_slowcase_cnt: %d", _monitorexit_slowcase_cnt);
tty->print_cr(" _patch_code_slowcase_cnt: %d", _patch_code_slowcase_cnt);
tty->print_cr(" _throw_range_check_exception_count: %d:", _throw_range_check_exception_count);
< prev index next >