Commit 09d041b2 authored by Vladimir Marko's avatar Vladimir Marko
Browse files

Reduce memory usage by other deps in scheduler.

Rely on transitive dependencies instead of adding the full
set of side effect dependencies.

Compiling a certain apk, the most memory hungry method has
the scheduler memory allocations in ArenaStack hidden by
the register allocator:
  - before:
    MEM: used: 155744672, allocated: 168446408, lost: 12036488
    Scheduler     155744672
  - after:
    MEM: used: 5181680, allocated: 7096776, lost: 114752
    SsaLiveness     4683440
    RegAllocator     314312
    RegAllocVldt     183928
The total arena memory used, including the ArenaAllocator
not listed above, goes from 167170024 to 16607032 (-90%).
(Measured with kArenaAllocatorCountAllocations=true,
kArenaAllocatorPreciseTracking=false.)

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 64312607
Change-Id: I825bcfb490171070c46ad6d1f460785f4e75cfd7
parent d7a0192f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment