Building Firefox with -O0 on arm64 mac recently hit the
"FIXME: thunk range overrun" error on multiple occasions.
Doubling or tripling slop was not sufficient in some cases, so
quadruple it.
Differential D138174
[lld-macho] Increase slop to prevent thunk out of range again. glandium on Nov 16 2022, 5:59 PM. Authored by
Details
Building Firefox with -O0 on arm64 mac recently hit the Doubling or tripling slop was not sufficient in some cases, so
Diff Detail
Event TimelineComment Actions Did you look into where all these thunk uses are coming from? Back when I added this hack, just 3 was enough. It feels like something changed to require way higher values. It'd be interesting to find out _what_ changed. (I added a bunch of printf() to this code to print the barrier progress and .o files that handle it to find out which .o file hit it last time.) Comment Actions I can't dig into this at the moment, but I opened an issue with a reproducer (https://github.com/llvm/llvm-project/issues/59259) |