--- a/hotspot/src/share/vm/opto/connode.cpp Wed Sep 17 12:59:52 2008 -0700
+++ b/hotspot/src/share/vm/opto/connode.cpp Tue Sep 23 12:29:06 2008 -0700
@@ -433,8 +433,8 @@
// If not converting int->oop, throw away cast after constant propagation
Node *CastPPNode::Ideal_DU_postCCP( PhaseCCP *ccp ) {
const Type *t = ccp->type(in(1));
- if (!t->isa_oop_ptr()) {
- return NULL; // do not transform raw pointers
+ if (!t->isa_oop_ptr() || in(1)->is_DecodeN()) {
+ return NULL; // do not transform raw pointers or narrow oops
}
return ConstraintCastNode::Ideal_DU_postCCP(ccp);
}