ZGC, at least in its default configuration on x86, is incompatible with ASan. ASan reserves 0x00007fff8000 through 0x10007fff7fff, which is roughly 2 GiB through 16 TiB. Based on src/hotspot/cpu/x86/gc/z/zGlobals_x86.cpp, ZGC requirements overlap with this memory range for layouts 1 and 2. However it looks like for layout 3 it could work. We should experiment with forcing ZGC to layout 3 when Hotspot is built with ASan or disable ZGC when Hotspot is built with ASan.
- links to
-
Review openjdk/jdk/13000