--- a/hotspot/src/share/vm/opto/type.hpp Mon Mar 21 18:38:00 2011 -0700
+++ b/hotspot/src/share/vm/opto/type.hpp Tue Mar 22 13:36:33 2011 -0700
@@ -988,8 +988,8 @@
static const TypeNarrowOop *make( const TypePtr* type);
- static const TypeNarrowOop* make_from_constant(ciObject* con) {
- return make(TypeOopPtr::make_from_constant(con));
+ static const TypeNarrowOop* make_from_constant(ciObject* con, bool require_constant = false) {
+ return make(TypeOopPtr::make_from_constant(con, require_constant));
}
// returns the equivalent ptr type for this compressed pointer