oshmpi
oshmpi copied to clipboard
Add zero-size/null-ptr checks to mem managment
I believe OpenSHMEM requires immediate return of a NULL pointer from the memory management routines if the user request a size of 0.
With these changes, OSHMPI passes the shmalloc and shmem_calloc unit tests from https://github.com/openshmem-org/tests-sos.