转载 出处:http://blog.csdn.net/wudaijun/article/details/9273339
2015/4/24
main
HashJoin::hash_tables_ = (HashTable *) operator new (thread_count * sizeof(HashTable));
thread
new (HashJoin::hash_tables_ + arg->getThreadId()) HashTable(*buffer_manager);
解释:
new操作包含两个步骤,内存分配operator new和创建对象(调用A()构造对象)。