added code to allocate bytes for runtime.Stack() call