Mercurial > hg > graal-jvmci-8
diff src/share/vm/ci/ciObjectFactory.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 | b32a809aab08 |
children | a1423fe86a18 |
line wrap: on
line diff
--- a/src/share/vm/ci/ciObjectFactory.cpp Tue Sep 15 11:09:34 2009 -0700 +++ b/src/share/vm/ci/ciObjectFactory.cpp Tue Sep 15 21:53:47 2009 -0700 @@ -261,12 +261,11 @@ ciObject* new_object = create_new_object(keyHandle()); assert(keyHandle() == new_object->get_oop(), "must be properly recorded"); init_ident_of(new_object); - if (!keyHandle->is_perm()) { + if (!new_object->is_perm()) { // Not a perm-space object. insert_non_perm(bucket, keyHandle(), new_object); return new_object; } - new_object->set_perm(); if (len != _ci_objects->length()) { // creating the new object has recursively entered new objects // into the table. We need to recompute our index.