Skip to content
Snippets Groups Projects
Commit 561c6fb5 authored by Markus Blatt's avatar Markus Blatt
Browse files

New version without reinterpret casts. Please test!

[[Imported from SVN: r5729]]
parent cbcc598b
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ int testPool()
// std::cout << element<<" "<<celement<<", "<<std::endl;
if(element< reinterpret_cast<unsigned long>(currentChunk->chunk_)) {
std::cerr <<" buffer overflow during first alloc: "<<reinterpret_cast<unsigned long>(currentChunk->chunk_)
std::cerr <<" buffer underflow during first alloc: "<<reinterpret_cast<unsigned long>(currentChunk->chunk_)
<<">"<<element<<"+"<<sizeof(T)<<std::endl;
return ++ret;
}
......@@ -108,8 +108,8 @@ int testPool()
std::cout<<"Checking "<<typeid(T).name()<<" sizeof="<<sizeof(T)<<" with size "<< size<<
" alignment="<<AlignmentOf<T>::value<<std::endl;
ret += testPool<0,T>();
ret += testPool<size,T>();
//ret += testPool<0,T>();
//ret += testPool<size,T>();
ret += testPool<5*size,T>();
ret += testPool<11*size,T>();
ret += testPool<33*size,T>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment