MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / operator new

Method operator new

sql/sql_show.cc:598–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596{
597public:
598 static void *operator new(size_t size)
599 {
600 return (void*) sql_alloc((uint) size);
601 }
602 static void operator delete(void *ptr __attribute__((unused)),
603 size_t size __attribute__((unused)))
604 { TRASH(ptr, size); }

Callers

nothing calls this directly

Calls 1

sql_allocFunction · 0.85

Tested by

no test coverage detected