CHeapObject.cpp 882 字节
Newer Older
E
Entong Shen 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2011 EMC Corp.
//
//	@filename:
//		CHeapObject.cpp
//
//	@doc:
//		Implementation of class of all objects that must reside on the heap;
//---------------------------------------------------------------------------

#include "gpos/utils.h"
#include "gpos/common/CHeapObject.h"

using namespace gpos;


//---------------------------------------------------------------------------
//	@function:
//		CHeapObject::CHeapObject
//
//	@doc:
//		Ctor
//
//---------------------------------------------------------------------------
CHeapObject::CHeapObject()
{
#if (GPOS_i386 || GPOS_i686 || GPOS_x86_64)
	GPOS_ASSERT(false == gpos::FOnStack(this) &&
	            "Object incorrectly allocated (stack/heap)");
#endif // (GPOS_i386 || GPOS_i686 || GPOS_x86_64)
}


// EOF