simpleperf: Fix test JITDebugReader.read_dex_file_in_memory

On ARM64, the address returned by malloc can be modified by
memory tag. So it can't match any address ranges in /proc/<pid>/maps.
Fix the test by using mmap() instead.

Bug: 307972834
Test: run simpleperf_unit_test on device
Change-Id: I48a674a3de9daaf258b11ec97b888e64de10d17c
1 file changed