commit | baa99adfc7154a9d8b12736752e44e199a5fbbf0 | [log] [tgz] |
---|---|---|
author | Lokesh Gidra <lokeshgidra@google.com> | Mon May 13 18:45:09 2019 -0700 |
committer | Lokesh Gidra <lokeshgidra@google.com> | Wed May 15 16:46:08 2019 +0000 |
tree | 0d8f14153c67c3d5970a492e0b5b0b2039e03f2b | |
parent | b5649f9b2bce5f4e90be7e2ccfbb9e33ff3105a0 [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 Change-Id: Ie9e96c95a7ee78a9b18c1bfc26ed04acbe99c32b