Skip to content
forked from openjdk/jdk

Commit

Permalink
Update to jdk-20+16
Browse files Browse the repository at this point in the history
28098: Minimal build failed with --disable-precompiled-headers
28096: LA port of 8293851: hs_err should print more stack in hex dump
  • Loading branch information
loongson-jvm authored Oct 11, 2022
1 parent e922be0 commit 5e18837
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/hotspot/cpu/loongarch/nativeInst_loongarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "nativeInst_loongarch.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/handles.hpp"
#include "runtime/safepoint.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/stubRoutines.hpp"
#include "utilities/ostream.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include "precompiled.hpp"
#include "asm/macroAssembler.hpp"
#include "classfile/javaClasses.hpp"
#include "gc/shared/barrierSetAssembler.hpp"
#include "interpreter/bytecodeHistogram.hpp"
#include "interpreter/interp_masm.hpp"
Expand Down
5 changes: 2 additions & 3 deletions src/hotspot/os_cpu/linux_loongarch/os_linux_loongarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,8 @@ void os::print_tos_pc(outputStream *st, const void *context) {

const ucontext_t* uc = (const ucontext_t*)context;

intptr_t *sp = (intptr_t *)os::Linux::ucontext_get_sp(uc);
st->print_cr("Top of Stack: (sp=" PTR_FORMAT ")", p2i(sp));
print_hex_dump(st, (address)(sp - 32), (address)(sp + 32), sizeof(intptr_t));
address sp = (address)os::Linux::ucontext_get_sp(uc);
print_tos(st, sp);
st->cr();

// Note: it may be unsafe to inspect memory near pc. For example, pc may
Expand Down

0 comments on commit 5e18837

Please sign in to comment.