summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
author Robin Lee <rgl@google.com> 2022-05-18 10:00:45 +0200
committer Roman Kiryanov <rkir@google.com> 2022-12-13 09:47:20 -0800
commite5b03a179a33c5806efd34d45dc01a0200194f80 (patch)
tree3760fcb6a6fad856b20fae9e4cf45118605f9603 /opengl/java
parent6192fb8f351e6d5fdd33944a7de85b4f7adca3ee (diff)
Emulator: handle OOM and Protocol error cases
- OutOfMemoryError can happen naturally if the size of the clipboard is too large to allocate. We should prefer to drop the clipboard data if we have a choice between that and crashing the system server. - OutOfMemoryError can happen unnatturally if the protocol gets out of sync with the host. This can happen quite easily if there is a caught exception and the clipboard monitor tries to keep on trucking, since the protocol doesn't have any built in synchronisation to catch back up to the start of the next message again. The only option to prevent that at the moment is to just close the pipe and reopen it in case of failure to understand something. Bug: 231340598 Test: presubmit Change-Id: Icceb8ec8b3988c32a2eb5f5598a43753460fc26b
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions