The previous code resulted in 252 KiB being allocated on the stack,
which caused a stack overflow on Fuchsia.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
As discussed offline with @Chia-hungDuan, moved the buffer pool to the heap instead of simply allocating less on the stack.
Comment Actions
LGTM
compiler-rt/lib/scudo/standalone/tests/release_test.cpp | ||
---|---|---|
570 | Can we have some comment here to say why we have to allocate the buffer on heap? |
compiler-rt/lib/scudo/standalone/tests/release_test.cpp | ||
---|---|---|
570 | Done, thanks! |
Can we have some comment here to say why we have to allocate the buffer on heap?