Build with reentrant stack