summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-03-15 17:48:02 -0700
committerJeff Brown <jeffbrown@google.com>2012-03-15 19:59:23 -0700
commit4280c4a93ea17f2e9d3f651e49d8c13dc3fb92aa (patch)
treef77523cff7d2f3a4d55ab2b3aa1ec0841d17cb89 /graphics/java/android/renderscript/RenderScript.java
parent16f5f5cc9d4c480fac3dc7f176f3f1edfbd256f4 (diff)
If an application calls System.exit() terminate it immediately.
There is no graceful way to kill Android application processes. They typically have many threads running doing various things When System.exit() is called, those threads just keep going while the cleanup actions run until the process finally. Performing shutdown actions can easily cause more harm than good. For example, closing the Binder driver's file descriptor may cause other threads waiting on Binder to wake up and then crash in nasty ways after receiving EBADF. So when an Android application exits, skip the cleanup and just call _exit() to end it all. Bug: 6168809 Change-Id: I29790c064426a0bf7dae7cdf444eea3eef1d5275
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions