alloca: one step towards thread-safety