MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / malloc

Method malloc

tests/DCPS/ZeroCopyRead/main.cpp:77–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 int num_frees() { return num_frees_;};
76
77 virtual void *malloc (size_t nbytes) {
78 num_allocs_++;
79 return ACE_OS::malloc(nbytes);
80 };
81 virtual void free (void *ptr) {
82 num_frees_++;
83 ACE_OS::free(ptr);

Callers 5

test_mallocFunction · 0.45
test_mallocsFunction · 0.45
runMethod · 0.45
recvFunction · 0.45
allocbufMethod · 0.45

Calls 1

mallocFunction · 0.85

Tested by 2

test_mallocFunction · 0.36
test_mallocsFunction · 0.36