-
公开(公告)号:US20240168865A1
公开(公告)日:2024-05-23
申请号:US18283696
申请日:2022-02-28
Inventor: Hongkai LIU
CPC classification number: G06F11/366 , G06F9/45558 , G06F2009/45591
Abstract: The present disclosure provides an exception handling method and apparatus, a device, and a storage medium. The method comprises: acquiring, when it is determined that an exception event occurs for Java code invoked based on a JNI, a Java exception object corresponding to the exception event. Then an exception identifier corresponding to the exception event is deleted. Finally, a pre-configured Java exception handler is invoked based on the JNI, and exception handling is performed on the Java exception object using the Java exception handler, the Java exception handler being configured to report the exception event corresponding to the exception object as a Java crash event.
-
2.
公开(公告)号:US20240126627A1
公开(公告)日:2024-04-18
申请号:US18277005
申请日:2022-02-28
Inventor: Hongkai LIU
IPC: G06F11/00
CPC classification number: G06F11/006 , G06F2201/87
Abstract: Provided are a method and apparatus for obtaining information of a stack frame in a call stack, a device, and a medium. The method includes: obtaining to-be-processed call stack with an abnormality during running of a program, each area element of the to-be-processed call stack including a method pointer and corresponding instruction offset value; applying for a first memory area used to store the method pointer and the corresponding instruction offset value; applying for a second memory area, and storing an address of the first memory area into a first area element in the second memory area; applying for a third memory area, and storing an address of the second memory area into a target storage area in the third memory area; and obtaining information of each stack frame in the to-be-processed call stack based on the address of the second memory area stored in the target storage area.
-