-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Description
Currently ASAN_SHADOW_SIZE defaults to 32MiB, which supports 256 MiB of real memory, but this can cause problems when users opt into larger memories (e.g. #12125). As far as I can tell, there's no reason not to remove this setting and calculate the necessary shadow memory from INITIAL_MEMORY, ALLOW_MEMORY_GROWTH and MAXIMUM_MEMORY. I'm not sure how to handle back-compat, though. Currently ASAN_SHADOW_SIZE can be set to basically any value, but the LEGACY_SETTINGS mechanism expects legacy settings to accept at most a handful of values. What is the best path forward?
- Keep ASAN_SHADOW_SIZE but emit warnings when its value isn't optimal.
- Make the LEGACY_SETTINGS mechanism more robust and complicated.
- Ignore ASAN_SHADOW_SIZE and emit a warning when it is used without going through the LEGACY_SETTINGS mechanism
- Something else?
Metadata
Metadata
Assignees
Labels
No labels