提交 e041a3a5 编写于 作者: K kvn

6621098: "* HeapWordSize" for TrackedInitializationLimit is missing

Summary: '* HeapWordSize' is missing in GraphKit::set_output_for_allocation()
Reviewed-by: rasbold, jrose, never
上级 9ac4d9ef
...@@ -2808,7 +2808,7 @@ Node* GraphKit::set_output_for_allocation(AllocateNode* alloc, ...@@ -2808,7 +2808,7 @@ Node* GraphKit::set_output_for_allocation(AllocateNode* alloc,
ciInstanceKlass* ik = oop_type->klass()->as_instance_klass(); ciInstanceKlass* ik = oop_type->klass()->as_instance_klass();
for (int i = 0, len = ik->nof_nonstatic_fields(); i < len; i++) { for (int i = 0, len = ik->nof_nonstatic_fields(); i < len; i++) {
ciField* field = ik->nonstatic_field_at(i); ciField* field = ik->nonstatic_field_at(i);
if (field->offset() >= TrackedInitializationLimit) if (field->offset() >= TrackedInitializationLimit * HeapWordSize)
continue; // do not bother to track really large numbers of fields continue; // do not bother to track really large numbers of fields
// Find (or create) the alias category for this field: // Find (or create) the alias category for this field:
int fieldidx = C->alias_type(field)->index(); int fieldidx = C->alias_type(field)->index();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册