diff options
author | Lokesh Gidra <lokeshgidra@google.com> | 2019-05-13 18:45:09 -0700 |
---|---|---|
committer | Lokesh Gidra <lokeshgidra@google.com> | 2019-05-17 17:53:33 +0000 |
commit | 17e5ba9850afd5ba5b62634426641efbd24d5076 (patch) | |
tree | bdb2f1405d2e3a7dd83d7596db03f5ca862f314f /compiler/optimizing/graph_visualizer.cc | |
parent | 23628c2133d21b72c9d82a49cff2527ae041ddc2 (diff) |
Optimize RegionSpace::ClearFromSpace()
We perform madvise() and mprotect() syscalls in
RegionSpace::ClearFromSpace() for every region that we reclaim. This was
being done while holding region_lock_. This has the potential to stall
the TLAB allocation requests.
In this CL, we pull out system calls out of the critical section of
region_lock_.
Bug: 132463704
Test: art/test/testrunner/testrunner.py --host --debug
(cherry picked from commit baa99adfc7154a9d8b12736752e44e199a5fbbf0)
Merged-In: Ie9e96c95a7ee78a9b18c1bfc26ed04acbe99c32b
Change-Id: Ie9e96c95a7ee78a9b18c1bfc26ed04acbe99c32b
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions