move global stackmax into atl__env->stackmax