From: Po Lu Date: Fri, 17 Feb 2023 11:08:55 +0000 (+0800) Subject: Improve logging of Java exceptions X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ecb48e8d636b043f485d3e5d75841b9c4818d4a1;p=emacs.git Improve logging of Java exceptions * src/android.c (android_exception_check): Print more detailed information. --- diff --git a/src/android.c b/src/android.c index 09b9001b45d..c5adb912d9a 100644 --- a/src/android.c +++ b/src/android.c @@ -4923,6 +4923,11 @@ android_exception_check (void) { if ((*android_java_env)->ExceptionCheck (android_java_env)) { + __android_log_print (ANDROID_LOG_WARNING, __func__, + "Possible out of memory error." + " The Java exception follows: "); + /* Describe exactly what went wrong. */ + (*android_java_env)->ExceptionDescribe (android_java_env); (*android_java_env)->ExceptionClear (android_java_env); memory_full (0); }