mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 06:01:22 -08:00
Clear image caches in reaction to system VM warnings
* java/org/gnu/emacs/EmacsNative.java (onLowMemory): * java/org/gnu/emacs/EmacsService.java (onLowMemory): New function. * src/android.c (android_on_low_memory, onLowMemory): New functions called when a VM caution is registered. Clear the image cache and run garbage collection.
This commit is contained in:
parent
5dc3c9f4ec
commit
5324723c2b
3 changed files with 35 additions and 0 deletions
|
|
@ -96,6 +96,9 @@ public final class EmacsNative
|
|||
thread, then return. */
|
||||
public static native void shutDownEmacs ();
|
||||
|
||||
/* Garbage collect and clear each frame's image cache. */
|
||||
public static native void onLowMemory ();
|
||||
|
||||
/* Abort and generate a native core dump. */
|
||||
public static native void emacsAbort ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue