Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/constantPool.cpp @ 8782:c3c64a973559
8009593: [parfait] Null pointer deference in hotspot/src/share/vm/oops/constantPool.cpp
Summary: added guarantee() to print_entry_on()
Reviewed-by: kvn
author | morris |
---|---|
date | Thu, 21 Mar 2013 10:13:56 -0700 |
parents | f16e75e0cf11 |
children | b9a918201d47 cc32ccaaf47f |
comparison
equal
deleted
inserted
replaced
8781:589aa23334ea | 8782:c3c64a973559 |
---|---|
1850 tag_at(index).print_on(st); | 1850 tag_at(index).print_on(st); |
1851 st->print(" : "); | 1851 st->print(" : "); |
1852 switch (tag_at(index).value()) { | 1852 switch (tag_at(index).value()) { |
1853 case JVM_CONSTANT_Class : | 1853 case JVM_CONSTANT_Class : |
1854 { Klass* k = klass_at(index, CATCH); | 1854 { Klass* k = klass_at(index, CATCH); |
1855 guarantee(k != NULL, "need klass"); | |
1855 k->print_value_on(st); | 1856 k->print_value_on(st); |
1856 st->print(" {0x%lx}", (address)k); | 1857 st->print(" {0x%lx}", (address)k); |
1857 } | 1858 } |
1858 break; | 1859 break; |
1859 case JVM_CONSTANT_Fieldref : | 1860 case JVM_CONSTANT_Fieldref : |