@@ -265,7 +265,7 @@ void frame::patch_pc(Thread* thread, address pc) {
265265 p2i (&((address*) _sp)[-1 ]), p2i (((address*) _sp)[-1 ]), p2i (pc));
266266 }
267267 assert (!Continuation::is_return_barrier_entry (*pc_addr), " return barrier" );
268- assert (_pc == *pc_addr || pc == *pc_addr || 0 == *pc_addr,
268+ assert (_pc == *pc_addr || pc == *pc_addr || nullptr == *pc_addr,
269269 " must be (pc: " INTPTR_FORMAT " _pc: " INTPTR_FORMAT " pc_addr: " INTPTR_FORMAT
270270 " *pc_addr: " INTPTR_FORMAT " sp: " INTPTR_FORMAT " )" ,
271271 p2i (pc), p2i (_pc), p2i (pc_addr), p2i (*pc_addr), p2i (sp ()));
@@ -296,10 +296,10 @@ void frame::patch_pc(Thread* thread, address pc) {
296296bool frame::is_interpreted_frame_valid (JavaThread* thread) const {
297297 assert (is_interpreted_frame (), " Not an interpreted frame" );
298298 // These are reasonable sanity checks
299- if (fp () == 0 || (intptr_t (fp ()) & (wordSize-1 )) != 0 ) {
299+ if (fp () == nullptr || (intptr_t (fp ()) & (wordSize-1 )) != 0 ) {
300300 return false ;
301301 }
302- if (sp () == 0 || (intptr_t (sp ()) & (wordSize-1 )) != 0 ) {
302+ if (sp () == nullptr || (intptr_t (sp ()) & (wordSize-1 )) != 0 ) {
303303 return false ;
304304 }
305305 int min_frame_slots = (z_common_abi_size + z_ijava_state_size) / sizeof (intptr_t );
@@ -420,7 +420,7 @@ void frame::back_trace(outputStream* st, intptr_t* start_sp, intptr_t* top_pc, u
420420 ? (address) top_pc
421421 : (address) *((intptr_t *)(((address) current_sp) + _z_abi (return_pc)));
422422
423- if ((intptr_t *) current_fp != 0 && (intptr_t *) current_fp <= current_sp) {
423+ if ((intptr_t *) current_fp != nullptr && (intptr_t *) current_fp <= current_sp) {
424424 st->print_cr (" ERROR: corrupt stack" );
425425 return ;
426426 }
@@ -503,7 +503,7 @@ void frame::back_trace(outputStream* st, intptr_t* start_sp, intptr_t* top_pc, u
503503 case 0 : // C frame:
504504 {
505505 st->print (" " );
506- if (current_pc == 0 ) {
506+ if (current_pc == nullptr ) {
507507 st->print (" ? " );
508508 } else {
509509 // name
0 commit comments