MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / malloc

Function malloc

src/OSspecific/POSIX/signals/sigFpe.C:62–72  ·  view source on GitHub ↗

Override the GLIBC malloc to support mallocNan

Source from the content-addressed store, hash-verified

60
61 // Override the GLIBC malloc to support mallocNan
62 void* malloc(size_t size)
63 {
64 if (Foam::sigFpe::mallocNanActive_)
65 {
66 return Foam::sigFpe::mallocNan(size);
67 }
68 else
69 {
70 return __libc_malloc(size);
71 }
72 }
73}
74
75void* Foam::sigFpe::mallocNan(size_t size)

Callers 2

Test-malloc.CFile · 0.85
CreateOpenGLWindowFunction · 0.85

Calls 1

mallocNanFunction · 0.85

Tested by

no test coverage detected