tried to integrate jstackalloc (incomplete)