void itable_interface_at_put(int index, int class_id) { #ifdef AZZERT Oop cls = Universe::class_from_id(class_id); GUARANTEE(!cls.is_null(), "sanity"); #endif int_field_put(itable_offset_from_index(index), class_id); }
void ConstantPool::klass_at_put(int index, JavaClass* k) { GUARANTEE(k->is_java_class(), "sanity"); GUARANTEE(k->obj() == Universe::class_from_id(k->class_id()), "sanity"); tag_at_put(index, JVM_CONSTANT_Class); // We may have put a symbol pointer here, so clear the write barrier bit OopDesc** klass = obj()->obj_field_addr(offset_from_index(index)); // another possible location for the klass is mmaped/malloced Monet bundle if (ObjectHeap::contains(klass)) { ObjectHeap::clear_bit_for(klass); } int_field_put(offset_from_index(index), k->class_id()); }
void Thread::set_stack_limit(address value) { #ifdef UNDER_CE value = (address)((int)value | _system_address); #endif int_field_put(stack_limit_offset(), (jint) value); if (Scheduler::get_gc_current_thread() != NULL) { // in a gc so check the old current thread pointer if (this->obj() == Scheduler:: get_gc_current_thread()) { update_current_stack_limit(this); } } else { if (Thread::current()->equals(this)) { update_current_stack_limit(this); } } }
void set_scale(jint value) { int_field_put(scale_offset(), value); }
void set_type(jint value) { int_field_put(type_offset(), value); }
void set_status (jint val) { int_field_put(status_offset(), val); }
void set_length(int length) { int_field_put(length_offset(), length); }
jint dec_suspend_count() { jint c = suspend_count() - 1; int_field_put(suspend_count_offset(), (c < 0 ? 0 : c)); return c; }
void clear_stillborn() { int_field_put(is_stillborn_offset(), 0); }
void set_buffer_size(jint val) { int_field_put(buffer_size_offset(),val); }
// Returns the interface at index void itable_offset_at_put(int index, int value) { int_field_put(itable_offset_from_index(index) + sizeof(int), value); }
void set_label(BinaryAssembler::Label& value) { int_field_put(label_offset(), value._encoding); }
void set_code_size(jint value) { int_field_put(code_size_offset(), value); }
void set_bci(jint value) { int_field_put(bci_offset(), value); }
void int_at_put(int index, jint value) { int_field_put(offset_from_int_index(index), value); }
void set_data_length(jint len) { int_field_put(data_length_offset(), len);}
void set_static_field_end(jint value) { int_field_put(static_field_end_offset(), value); }
void set_terminated() { int_field_put(is_terminated_offset(), 1); }
void set_index(jint val) { int_field_put(index_offset(),val); }
jint inc_suspend_count() { jint c = suspend_count(); int_field_put(suspend_count_offset(), c+1); return c; }
void set_priority(jint value) { int_field_put(priority_offset(), value); }
void set_count(jint val) { int_field_put(count_offset(),val); }
void set_stillborn() { int_field_put(is_stillborn_offset(), 1); }
void set_file_size(long val) { int_field_put(file_size_offset(), (jint)val); }
void BufferedFile::set_file_pointer(OsFile_Handle val) { int_field_put(file_pointer_offset(), (int)val); }
void set_file_pos(long val) { int_field_put(file_pos_offset(), (jint)val); }
void junk_file_pointer() { int_field_put(file_pointer_offset(), -1); }
void set_access_flags(AccessFlags access_flags) { int_field_put(access_flags_offset(), access_flags.as_int()); }
void set_referent_index(int value) { int_field_put(referent_index_offset(), value); }
void set_stack_pointer(jint value) { int_field_put(stack_pointer_offset(), value); }