Mercurial > hg > truffle
diff src/share/vm/c1x/c1x_CodeInstaller.cpp @ 2282:0309d394eb5f
Added support for non-null oop values in scope objects (allocating global handle).
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Mon, 04 Apr 2011 21:02:45 +0200 |
parents | a2babfb34c24 |
children | e88293edf07c |
line wrap: on
line diff
--- a/src/share/vm/c1x/c1x_CodeInstaller.cpp Mon Apr 04 20:00:55 2011 +0200 +++ b/src/share/vm/c1x/c1x_CodeInstaller.cpp Mon Apr 04 21:02:45 2011 +0200 @@ -142,7 +142,7 @@ if (obj == NULL) { return new ConstantOopWriteValue(NULL); } else { - obj->print(); + return new ConstantOopWriteValue(JNIHandles::make_global(obj)); } } else if (type == T_ADDRESS) { return new ConstantLongValue(prim);