OSDN Git Service

ART: Don't attempt write flock if not zygote
authorAndreas Gampe <agampe@google.com>
Tue, 5 Apr 2016 17:26:42 +0000 (10:26 -0700)
committerAndreas Gampe <agampe@google.com>
Tue, 5 Apr 2016 17:50:40 +0000 (10:50 -0700)
commitfff377b13469b8c84ce55ee20b10ca80a5a0813d
tree161d6b283884bb64501dba5b129134170912cd29
parent657887ebcd26cf0eae7c40d8ea35bd33186903e7
ART: Don't attempt write flock if not zygote

When loading an image, don't attempt a RDWR flock if the process
is not the zygote. The lock will be rejected as the process does
not have permission to write the file.

Bug: 28011897
Change-Id: I567934c4e9a9a13e9131711240e9ecfdd58b69f7
runtime/gc/space/image_space.cc