Mercurial > hg > truffle
comparison src/share/vm/c1/c1_GraphBuilder.cpp @ 989:148e5441d916
6863023: need non-perm oops in code cache for JSR 292
Summary: Make a special root-list for those few nmethods which might contain non-perm oops.
Reviewed-by: twisti, kvn, never, jmasa, ysr
author | jrose |
---|---|
date | Tue, 15 Sep 2009 21:53:47 -0700 |
parents | bd02caa94611 |
children | 323bd24c6520 |
comparison
equal
deleted
inserted
replaced
987:00977607da34 | 989:148e5441d916 |
---|---|
1440 ciConstant field_val = field->constant_value(); | 1440 ciConstant field_val = field->constant_value(); |
1441 BasicType field_type = field_val.basic_type(); | 1441 BasicType field_type = field_val.basic_type(); |
1442 switch (field_type) { | 1442 switch (field_type) { |
1443 case T_ARRAY: | 1443 case T_ARRAY: |
1444 case T_OBJECT: | 1444 case T_OBJECT: |
1445 if (field_val.as_object()->has_encoding()) { | 1445 if (field_val.as_object()->should_be_constant()) { |
1446 constant = new Constant(as_ValueType(field_val)); | 1446 constant = new Constant(as_ValueType(field_val)); |
1447 } | 1447 } |
1448 break; | 1448 break; |
1449 | 1449 |
1450 default: | 1450 default: |