Mercurial > hg > graal-jvmci-8
comparison src/cpu/x86/vm/x86_32.ad @ 12316:190899198332
7195622: CheckUnhandledOops has limited usefulness now
Summary: Enable CHECK_UNHANDLED_OOPS in fastdebug builds across all supported platforms.
Reviewed-by: coleenp, hseigel, dholmes, stefank, twisti, ihse, rdurbin
Contributed-by: lois.foltan@oracle.com
author | hseigel |
---|---|
date | Thu, 26 Sep 2013 10:25:02 -0400 |
parents | e10e43e58e92 |
children | 268e7a2178d7 |
comparison
equal
deleted
inserted
replaced
12315:c1fbf21c7397 | 12316:190899198332 |
---|---|
349 // emit 32 bit value and construct relocation entry from RelocationHolder | 349 // emit 32 bit value and construct relocation entry from RelocationHolder |
350 void emit_d32_reloc(CodeBuffer &cbuf, int d32, RelocationHolder const& rspec, | 350 void emit_d32_reloc(CodeBuffer &cbuf, int d32, RelocationHolder const& rspec, |
351 int format) { | 351 int format) { |
352 #ifdef ASSERT | 352 #ifdef ASSERT |
353 if (rspec.reloc()->type() == relocInfo::oop_type && d32 != 0 && d32 != (int)Universe::non_oop_word()) { | 353 if (rspec.reloc()->type() == relocInfo::oop_type && d32 != 0 && d32 != (int)Universe::non_oop_word()) { |
354 assert(oop(d32)->is_oop() && (ScavengeRootsInCode || !oop(d32)->is_scavengable()), "cannot embed scavengable oops in code"); | 354 assert(cast_to_oop(d32)->is_oop() && (ScavengeRootsInCode || !cast_to_oop(d32)->is_scavengable()), "cannot embed scavengable oops in code"); |
355 } | 355 } |
356 #endif | 356 #endif |
357 cbuf.relocate(cbuf.insts_mark(), rspec, format); | 357 cbuf.relocate(cbuf.insts_mark(), rspec, format); |
358 cbuf.insts()->emit_int32(d32); | 358 cbuf.insts()->emit_int32(d32); |
359 } | 359 } |