summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2017-07-05 14:45:38 +0100
committerAndreas Gampe <agampe@google.com>2017-09-13 18:40:59 -0700
commitac0b4be198960ae56c3b484052bf3acccca59d22 (patch)
tree7b79460a8545668378e94c229703afb4da124802 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parenta3d4230b92d69eb12c48f83689aeb27de992277d (diff)
Zygote: Improve logging and error handling during connections.
Before this change, we were throwing a checked exception on success and returning on failure. This made it hard to figure out where / when something was going wrong. This change switches things around to throw a RuntimeException when something goes wrong and to return a Runnable on success. This lets us make stronger assertions in both the parent and the child process about their state and expected return values. This change also upgrades the severity of several errors that we would earlier just ignore. We will now reject the command and terminate the connection to the client when we encounter these errors such as: - Malformed arguments - Any ZygoteSecurityException, such as thown thrown by applyUidSecurityPolicy and applyInvokeWithSecurityPolicy. - Any error in setting up pipes etc. to facilitate communication with child processes. (cherry picked from commit bf99d06003e76469a99269816babe16a22d83b89) Bug: 13618569 Test: Manual Merged-In: Id931d44135ae2e4ede1bbac6a4b187f6c139e1fd Change-Id: Id931d44135ae2e4ede1bbac6a4b187f6c139e1fd
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions