Mercurial > hg > truffle
diff src/share/vm/oops/constantPoolKlass.cpp @ 1161:1fc01a2425ce
Merge
author | iveresov |
---|---|
date | Tue, 12 Jan 2010 13:54:40 -0800 |
parents | 4e6abf09f540 |
children | c18cbe5936b8 beb77f0d41b3 |
line wrap: on
line diff
--- a/src/share/vm/oops/constantPoolKlass.cpp Sat Jan 09 09:01:41 2010 -0800 +++ b/src/share/vm/oops/constantPoolKlass.cpp Tue Jan 12 13:54:40 2010 -0800 @@ -387,8 +387,18 @@ cp->set_cache(cache()); } +#endif -#endif +void constantPoolKlass::oop_print_value_on(oop obj, outputStream* st) { + assert(obj->is_constantPool(), "must be constantPool"); + constantPoolOop cp = constantPoolOop(obj); + st->print("constant pool [%d]", cp->length()); + if (cp->has_pseudo_string()) st->print("/pseudo_string"); + if (cp->has_invokedynamic()) st->print("/invokedynamic"); + cp->print_address_on(st); + st->print(" for "); + cp->pool_holder()->print_value_on(st); +} const char* constantPoolKlass::internal_name() const { return "{constant pool}";