[vm] gen_snapshot without santizers should be able to create AOT snapshots to be used with AOT runtimes with sanitizers #55638
Labels
area-vm
Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.
customer-google3
P2
A bug or feature request we're likely to work on
We have a bunch of
#if defined(USING_MEMORY_SANITIZER)
in our IL generation code. This means that if we want to build an AOT snapshot with the right runtime calls, the gen_snapshot must be built with sanitizers.(I don't see any different machine code generation for ASAN, LSAN, UBSAN, or TSAN at the moment.)
@mraleph suggested it would be cleaner to be able to pass flags to
gen_snapshot
, so that a non-instrumented gen_snapshot can be used to build an instrumented aot snapshot.Most likely, we can make these flags, and have the default value of the flag be based on the existing macros, so that current workflows relying on gen_snapshot being built with the sanitizer enabled keep working.
Related:
The text was updated successfully, but these errors were encountered: