Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1/c1_InstructionPrinter.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 | a61af66fc99e |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
987:00977607da34 | 989:148e5441d916 |
---|---|
131 output()->print("<unloaded object 0x%x>", value); | 131 output()->print("<unloaded object 0x%x>", value); |
132 } else if (value->is_method()) { | 132 } else if (value->is_method()) { |
133 ciMethod* m = (ciMethod*)value; | 133 ciMethod* m = (ciMethod*)value; |
134 output()->print("<method %s.%s>", m->holder()->name()->as_utf8(), m->name()->as_utf8()); | 134 output()->print("<method %s.%s>", m->holder()->name()->as_utf8(), m->name()->as_utf8()); |
135 } else { | 135 } else { |
136 output()->print("<object 0x%x>", value->encoding()); | 136 output()->print("<object 0x%x>", value->constant_encoding()); |
137 } | 137 } |
138 } else if (type->as_InstanceConstant() != NULL) { | 138 } else if (type->as_InstanceConstant() != NULL) { |
139 output()->print("<instance 0x%x>", type->as_InstanceConstant()->value()->encoding()); | 139 output()->print("<instance 0x%x>", type->as_InstanceConstant()->value()->constant_encoding()); |
140 } else if (type->as_ArrayConstant() != NULL) { | 140 } else if (type->as_ArrayConstant() != NULL) { |
141 output()->print("<array 0x%x>", type->as_ArrayConstant()->value()->encoding()); | 141 output()->print("<array 0x%x>", type->as_ArrayConstant()->value()->constant_encoding()); |
142 } else if (type->as_ClassConstant() != NULL) { | 142 } else if (type->as_ClassConstant() != NULL) { |
143 ciInstanceKlass* klass = type->as_ClassConstant()->value(); | 143 ciInstanceKlass* klass = type->as_ClassConstant()->value(); |
144 if (!klass->is_loaded()) { | 144 if (!klass->is_loaded()) { |
145 output()->print("<unloaded> "); | 145 output()->print("<unloaded> "); |
146 } | 146 } |