summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2013-10-02 18:11:01 -0700
committerChristopher Tate <ctate@google.com>2013-10-02 18:16:24 -0700
commitcc866da37db53df67e9b324815d6377bbd47d71b (patch)
tree160c8aa9638dc649a16b819f5d831d50ffd5c417 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent9ca82d333cfeb7aa5218efbca95763c15dc440e9 (diff)
Fix cross-process race in initial files/cache dir creation
Apps that run components in separate processes, especially that host providers in separate processes, can hit a race condition where two processes simultaneously discover that the files/cache dir must be created, then each calls mkdirs(). One of these will fail not because the dir couldn't be created, but because it lost the race and mkdirs() returned false to signal that it already existed -- and this was assumed to be a hard failure. We now recheck existence after a mkdirs() failure to discern this case and proceed appropriately. Bug 10515463 Change-Id: I13fbdd838921223f75ab11faa47291c82b21c650
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions