Closed dalcinl closed 2 years ago
The following code is trivially wrong,
void *shmem_calloc(size_t count, size_t size) { void *ptr = NULL; OSHMPI_NOINLINE_RECURSIVE() ptr = OSHMPI_malloc(size); memset(ptr, 0, count * size); return ptr; }
it should use ptr = OSHMPI_malloc(count * size);
ptr = OSHMPI_malloc(count * size);
@jeffhammond Could you please help me with this one?
https://github.com/pmodels/oshmpi/pull/132
The following code is trivially wrong,
it should use
ptr = OSHMPI_malloc(count * size);