gc.VerifyAssumptions

gc.VerifyAssumptions

#Overview

name: gc.VerifyAssumptions

This variable is created as a Console Variable (cvar).

It is referenced in 2 C++ source files.

#Summary

#References in C++ code

#Callsites

This variable is referenced in the following C++ source code:

#Loc: <Workspace>/Engine/Source/Runtime/CoreUObject/Private/UObject/GarbageCollectionVerification.cpp:34

Scope: file

Source code excerpt:

COREUOBJECT_API bool	GShouldVerifyGCAssumptions = !UE_BUILD_SHIPPING && !UE_BUILD_TEST && !WITH_EDITOR;
static FAutoConsoleVariableRef CVarShouldVerifyGCAssumptions(
	TEXT("gc.VerifyAssumptions"),
	GShouldVerifyGCAssumptions,
	TEXT("Whether to verify GC assumptions (disregard for GC, clustering) on each GC."),
	ECVF_Default
);

/** If set and VERIFY_DISREGARD_GC_ASSUMPTIONS is set, we verify GC assumptions when performing a full (blocking) purge */

#Loc: <Workspace>/Engine/Source/Runtime/CoreUObject/Private/UObject/Obj.cpp:5321

Scope (from outer to inner):

file
function     void StaticUObjectInit

Source code excerpt:

	GObjTransientPkg->AddToRoot();

	if (IConsoleVariable* CVarVerifyGCAssumptions = IConsoleManager::Get().FindConsoleVariable(TEXT("gc.VerifyAssumptions")))
	{
	if( FParse::Param( FCommandLine::Get(), TEXT("VERIFYGC") ) )
	{
			CVarVerifyGCAssumptions->Set(true, ECVF_SetByCommandline);
	}
	if( FParse::Param( FCommandLine::Get(), TEXT("NOVERIFYGC") ) )