library/src/memory/BP-LinuxMemMapping.cc
// looks at an size_teger corresponding to the
// heap chunk size of a heap chunk and gets an
// accurate double word aligned heap size minus
// the eight bytes for its header and the remainder
// used for its flags.
looks at an size_teger corresponding to the
heap chunk size of a heap chunk and gets an
accurate double word aligned heap size minus
the eight bytes for its header and the remainder
used for its flags.
looks at an size_teger corresponding to the heap chunk size of a heap chunk and gets an accurate double word aligned heap size minus the eight bytes for its header and the remainder used for its flags .
size_t GetHeapSizeFromChunkValue(size_t heapSize)
{
	if(heapSize == 0)
		return 0;
	size_t remainder = 0;
	heapSize -= 8;
	remainder = heapSize % 8;
	heapSize -= remainder;
	return heapSize;
}
size_t GetHeapSizeFromChunkValue ( size_t heapSize ) { if ( heapSize == 0 ) return 0 ; size_t remainder = 0 ; heapSize -= 8 ; remainder = heapSize % 8 ; heapSize -= remainder ; return heapSize ; }
looks at an size_teger corresponding to the
heap chunk size of a heap chunk and gets an
accurate double word aligned heap size minus
the eight bytes for its header and the remainder
used for its flags.
looks at an size_teger corresponding to the heap chunk size of a heap chunk and gets an accurate double word aligned heap size minus the eight bytes for its header and the remainder used for its flags .