Skip to content

Commit 8421165

Browse files
author
duke
committed
Backport 59810ad745b28f50d287fa8db650c3f1924791d9
1 parent 1603de1 commit 8421165

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/hotspot/os_cpu/aix_ppc/os_aix_ppc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ void os::print_context(outputStream *st, const void *context) {
448448
}
449449

450450
void os::print_register_info(outputStream *st, const void *context, int& continuation) {
451-
const int register_count = 32 /* r0-r32 */ + 3 /* pc, lr, sp */;
451+
const int register_count = 32 /* r0-r31 */ + 3 /* pc, lr, sp */;
452452
int n = continuation;
453453
assert(n >= 0 && n <= register_count, "Invalid continuation value");
454454
if (context == nullptr || n == register_count) {

src/hotspot/os_cpu/linux_aarch64/os_linux_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void os::print_context(outputStream *st, const void *context) {
355355
}
356356

357357
void os::print_register_info(outputStream *st, const void *context, int& continuation) {
358-
const int register_count = 32 /* r0-r31 */;
358+
const int register_count = 31 /* r0-r30 */;
359359
int n = continuation;
360360
assert(n >= 0 && n <= register_count, "Invalid continuation value");
361361
if (context == nullptr || n == register_count) {

src/hotspot/os_cpu/linux_ppc/os_linux_ppc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ void os::print_context(outputStream *st, const void *context) {
468468
}
469469

470470
void os::print_register_info(outputStream *st, const void *context, int& continuation) {
471-
const int register_count = 32 /* r0-r32 */ + 3 /* pc, lr, ctr */;
471+
const int register_count = 32 /* r0-r31 */ + 3 /* pc, lr, ctr */;
472472
int n = continuation;
473473
assert(n >= 0 && n <= register_count, "Invalid continuation value");
474474
if (context == nullptr || n == register_count) {

0 commit comments

Comments
 (0)