@@ -265,7 +265,7 @@ void frame::patch_pc(Thread* thread, address pc) {
265
265
p2i (&((address*) _sp)[-1 ]), p2i (((address*) _sp)[-1 ]), p2i (pc));
266
266
}
267
267
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,
269
269
" must be (pc: " INTPTR_FORMAT " _pc: " INTPTR_FORMAT " pc_addr: " INTPTR_FORMAT
270
270
" *pc_addr: " INTPTR_FORMAT " sp: " INTPTR_FORMAT " )" ,
271
271
p2i (pc), p2i (_pc), p2i (pc_addr), p2i (*pc_addr), p2i (sp ()));
@@ -296,10 +296,10 @@ void frame::patch_pc(Thread* thread, address pc) {
296
296
bool frame::is_interpreted_frame_valid (JavaThread* thread) const {
297
297
assert (is_interpreted_frame (), " Not an interpreted frame" );
298
298
// 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 ) {
300
300
return false ;
301
301
}
302
- if (sp () == 0 || (intptr_t (sp ()) & (wordSize-1 )) != 0 ) {
302
+ if (sp () == nullptr || (intptr_t (sp ()) & (wordSize-1 )) != 0 ) {
303
303
return false ;
304
304
}
305
305
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
420
420
? (address) top_pc
421
421
: (address) *((intptr_t *)(((address) current_sp) + _z_abi (return_pc)));
422
422
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) {
424
424
st->print_cr (" ERROR: corrupt stack" );
425
425
return ;
426
426
}
@@ -503,7 +503,7 @@ void frame::back_trace(outputStream* st, intptr_t* start_sp, intptr_t* top_pc, u
503
503
case 0 : // C frame:
504
504
{
505
505
st->print (" " );
506
- if (current_pc == 0 ) {
506
+ if (current_pc == nullptr ) {
507
507
st->print (" ? " );
508
508
} else {
509
509
// name
0 commit comments