1.0.23.8: factor out similar code from gc_alloc_large and gc_alloc_update_page_tables