don't alloca more than one page in apply()