Skip to content

Commit e1380b4

Browse files
authored
Update (2023.07.12, 3rd)
31414: LA port of 8264899: C1: -XX:AbortVMOnException does not work if all methods in the call stack are compiled with C1 and there are no exception handlers 31413: LA port of 8310225: Reduce inclusion of oopMapCache.hpp and generateOopMap.hpp
1 parent 1380eee commit e1380b4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/hotspot/cpu/loongarch/c1_Runtime1_loongarch_64.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,14 @@ void Runtime1::generate_unwind_exception(StubAssembler *sasm) {
471471
const Register exception_pc = A1;
472472
const Register handler_addr = A3;
473473

474+
if (AbortVMOnException) {
475+
__ enter();
476+
save_live_registers(sasm);
477+
__ call_VM_leaf(CAST_FROM_FN_PTR(address, check_abort_on_vm_exception), A0);
478+
restore_live_registers(sasm);
479+
__ leave();
480+
}
481+
474482
// verify that only A0, is valid at this time
475483
__ invalidate_registers(false, true, true, true, true, true);
476484

src/hotspot/cpu/loongarch/frame_loongarch.inline.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "code/codeCache.inline.hpp"
3131
#include "code/vmreg.inline.hpp"
3232
#include "interpreter/interpreter.hpp"
33-
#include "interpreter/oopMapCache.hpp"
3433
#include "runtime/sharedRuntime.hpp"
3534

3635
// Inline functions for Loongson frames:

0 commit comments

Comments
 (0)