ART: Add GetStackTrace fast-path

Add a fast-path closure that fills stack frames directly into the
provided buffer, avoiding an intermediate vector and its allocations,
as well as a memcpy.

This only works when collecting stack frames from the top (start >= 0),
which is a common case.

Bug: 62065987
Test: m test-art-host
Change-Id: I8f0d34b3d18f70f4699ed8bdec2c88ca4c96cd4f
1 file changed