1
1
/*
2
2
* Copyright (c) 2020, Microsoft Corporation. All rights reserved.
3
- * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
3
+ * Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
4
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
5
*
6
6
* This code is free software; you can redistribute it and/or modify it
@@ -79,15 +79,15 @@ address os::fetch_frame_from_context(const void* ucVoid,
79
79
address epc;
80
80
CONTEXT* uc = (CONTEXT*)ucVoid;
81
81
82
- if (uc != NULL ) {
82
+ if (uc != nullptr ) {
83
83
epc = (address)uc->Pc ;
84
84
if (ret_sp) *ret_sp = (intptr_t *)uc->Sp ;
85
85
if (ret_fp) *ret_fp = (intptr_t *)uc->Fp ;
86
86
} else {
87
87
// construct empty ExtendedPC for return value checking
88
- epc = NULL ;
89
- if (ret_sp) *ret_sp = (intptr_t *)NULL ;
90
- if (ret_fp) *ret_fp = (intptr_t *)NULL ;
88
+ epc = nullptr ;
89
+ if (ret_sp) *ret_sp = (intptr_t *)nullptr ;
90
+ if (ret_fp) *ret_fp = (intptr_t *)nullptr ;
91
91
}
92
92
return epc;
93
93
}
@@ -117,7 +117,7 @@ bool os::win32::get_frame_at_stack_banging_point(JavaThread* thread,
117
117
// more complex code with compiled code
118
118
assert (!Interpreter::contains (pc), " Interpreted methods should have been handled above" );
119
119
CodeBlob* cb = CodeCache::find_blob (pc);
120
- if (cb == NULL || !cb->is_nmethod () || cb->is_frame_complete_at (pc)) {
120
+ if (cb == nullptr || !cb->is_nmethod () || cb->is_frame_complete_at (pc)) {
121
121
// Not sure where the pc points to, fallback to default
122
122
// stack overflow handling
123
123
return false ;
@@ -161,7 +161,7 @@ frame os::current_frame() {
161
161
// helper functions for fatal error handler
162
162
163
163
void os::print_context (outputStream *st, const void *context) {
164
- if (context == NULL ) return ;
164
+ if (context == nullptr ) return ;
165
165
166
166
const CONTEXT* uc = (const CONTEXT*)context;
167
167
@@ -207,7 +207,7 @@ void os::print_context(outputStream *st, const void *context) {
207
207
}
208
208
209
209
void os::print_tos_pc (outputStream *st, const void *context) {
210
- if (context == NULL ) return ;
210
+ if (context == nullptr ) return ;
211
211
212
212
const CONTEXT* uc = (const CONTEXT*)context;
213
213
@@ -225,7 +225,7 @@ void os::print_tos_pc(outputStream *st, const void *context) {
225
225
}
226
226
227
227
void os::print_register_info (outputStream *st, const void *context) {
228
- if (context == NULL ) return ;
228
+ if (context == nullptr ) return ;
229
229
230
230
const CONTEXT* uc = (const CONTEXT*)context;
231
231
0 commit comments