Mercurial > hg > graal-jvmci-8
comparison src/share/vm/compiler/oopMap.cpp @ 2108:50b45e2d9725
Fixed bug in getClass() XIR snippet
Null check needs separate PC position. Otherwise there's a problem if the null check is immediately after a call instruction.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Wed, 16 Feb 2011 13:38:33 +0100 |
parents | f95d63e2154a |
children | be4ca325525a |
comparison
equal
deleted
inserted
replaced
2107:e5ba25730d9b | 2108:50b45e2d9725 |
---|---|
253 | 253 |
254 #ifdef ASSERT | 254 #ifdef ASSERT |
255 if(om_count() > 0) { | 255 if(om_count() > 0) { |
256 OopMap* last = at(om_count()-1); | 256 OopMap* last = at(om_count()-1); |
257 if (last->offset() == map->offset() ) { | 257 if (last->offset() == map->offset() ) { |
258 fatal("OopMap inserted twice"); | 258 fatal(err_msg("OopMap inserted twice (offset=%d)", last->offset())); |
259 } | 259 } |
260 if(last->offset() > map->offset()) { | 260 if(last->offset() > map->offset()) { |
261 tty->print_cr( "WARNING, maps not sorted: pc[%d]=%d, pc[%d]=%d", | 261 tty->print_cr( "WARNING, maps not sorted: pc[%d]=%d, pc[%d]=%d", |
262 om_count(),last->offset(),om_count()+1,map->offset()); | 262 om_count(),last->offset(),om_count()+1,map->offset()); |
263 } | 263 } |