Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/c1/c1_GraphBuilder.cpp Tue Sep 15 11:09:34 2009 -0700 +++ b/src/share/vm/c1/c1_GraphBuilder.cpp Tue Sep 15 21:53:47 2009 -0700 @@ -1442,7 +1442,7 @@ switch (field_type) { case T_ARRAY: case T_OBJECT: - if (field_val.as_object()->has_encoding()) { + if (field_val.as_object()->should_be_constant()) { constant = new Constant(as_ValueType(field_val)); } break;