When N is 1024, int result[N][N] is obviously large stack that Windows cannot support...
Fix #60326.
Differential D142684
[OpenMP] Fix stack overflow for test bug54082.c tianshilei1992 on Jan 26 2023, 7:20 PM. Authored by
Details When N is 1024, int result[N][N] is obviously large stack that Windows cannot support... Fix #60326.
Diff Detail
Event TimelineComment Actions Thanks for the fix! It does indeed seem to fix the issue. Do you happen to know why this worked before, but now suddenly stopped working after D142297 - was the stack usage so close to the edges of what's allowed, that any minor tweak pushed it over the limit, or did the change in D142297 affect the amount of stack used in a bigger way? (I presume that the main int result[N][N] array here only gets allocated once on the stack, and the OpenMP threads just refer to that? I presume the change didn't cause the array to be allocated in more places than before?) |