Drop PER_THREAD conditionals from malloc.
Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
Use double constants instead of the struct number
Consolidate definition of constant t22