Added more functionality to dex file tracking
Additional functions were added for (un)poisoning only certain sections of a dex file. All functions related to tracking are now in a class (DexFileTrackingRegistrar) since unpoisoning subsections of an already poisoned section cause poison reads. Static variables were added representing specific configurations that were used for testing. GetCodeItem from art/dex/layout/dex_ir.cc was moved to art/runtime/dex_file.cc because dex_file_tracking_registrar calls GetCodeItem and GetCodeItem returns a property of a DexFile. Bug: 37754950 Test: export ART_DEX_FILE_ACCESS_TRACKING=true && m -j && m -j SANITIZE_TARGET=address SANITIZE_LITE=true test-art-host Change-Id: Ie4e5aefb6f80b18fdaae5b5e8aa3bc99d77cbeac
Loading
Please sign in to comment