port PT_SHRINK/PT_GROW from RE