Use a pool for DexDebugEvents.

Lowers heap requirement from 460MB to 430MB in GMSCore.

For 480MB heap with this change:

 real    0m54.886s
 user    2m0.952s
 sys     0m2.480s

Without this change:

 real    1m18.465s
 user    3m11.344s
 sys     0m2.868s

BUG=

Change-Id: Ie9565cbd2447cce31680a8dd3e88e2bd2e02723b
10 files changed
tree: 0ca5cf95640b7f17c8240c46264d30ee1e01ae6f
  1. buildSrc/
  2. scripts/
  3. src/
  4. tests/
  5. third_party/
  6. tools/
  7. .gitignore
  8. AUTHORS
  9. build.gradle
  10. codereview.settings
  11. CONTRIBUTING.md
  12. copyAdditionalJctfCommonFiles.gradle
  13. LICENSE
  14. README.md
README.md

The R8 repo contains two tools.

  1. D8 is a dexer that converts java byte code to dex code.

  2. R8 is a java program shrinking and minification tool.