diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2019-09-30 13:45:51 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2019-10-06 13:09:09 +0000 |
commit | 623d4f1ba4f4218c5472e3d9e1e9bf707795878d (patch) | |
tree | 44a01387b2fcdda602019cefa3bf78b6535b2caa /test/ProfileTestMultiDex | |
parent | 94af5824acb28f9756fb8246f95f78c4026228e2 (diff) |
Share boot image methods memory in JIT zygote.
Once the zygote is done compiling, copy the ArtMethods to
shared memory that will be in-place remapped. This is
a memory optimization that enables memory sharing between
zygote and early forked processes.
Currently relies on undefined behavior of the kernel, but will
follow-up with a CL that uses file sealing that will address this.
Saves around 2MB of memory for processes forked before zygote is
done compiling - there are around a dozen of processes.
Bug: 119800099
Test: boots, PostLaunchMemoryUsage
Change-Id: Ia1bdbd1abd27f28b087d9f33aca4cd901d55082f
Diffstat (limited to 'test/ProfileTestMultiDex')
0 files changed, 0 insertions, 0 deletions