tpcc-runner icon indicating copy to clipboard operation
tpcc-runner copied to clipboard

[ALL] Construction of allocated memory

Open rotaki opened this issue 4 years ago • 0 comments

https://github.com/wattlebirdaz/tpcc-runner/blob/4730c4c1476349dcada8f5f985764b86971d432e/protocols/nowait/include/nowait.hpp#L101-L105

For safety reasons, use the constructor for initializing allocated memory. (Object* obj = new (mem_addr) Object (args))

rotaki avatar Oct 15 '21 06:10 rotaki