Redesigned reference-counted pointer