/Engine/Source/Runtime/CoreUObject/Public/UObject/Package.h
Functionality to support SoftGC in the cooker. When activated by the cooker, objects in each package are Objects in each package are stored in SoftGCPackageToObjectList and are marked as referenced if the package is referenced.
static bool bSupportCookerSoftGC = false;