8140584: nmethod::oops_do_marking_epilogue always runs verification code

Reviewed-by: tschatzl, kvn
This commit is contained in:
Stefan Karlsson 2015-10-27 12:25:08 +01:00
parent 2e45726df1
commit eddb003fc7
6 changed files with 15 additions and 15 deletions

View file

@ -438,10 +438,10 @@ void Relocation::const_set_data_value(address x) {
void Relocation::const_verify_data_value(address x) {
#ifdef _LP64
if (format() == relocInfo::narrow_oop_in_const) {
assert(*(narrowOop*)addr() == oopDesc::encode_heap_oop((oop) x), "must agree");
guarantee(*(narrowOop*)addr() == oopDesc::encode_heap_oop((oop) x), "must agree");
} else {
#endif
assert(*(address*)addr() == x, "must agree");
guarantee(*(address*)addr() == x, "must agree");
#ifdef _LP64
}
#endif