This is an archive of the discontinued LLVM Phabricator instance.

Fix aligned memory allocation in the stub library
ClosedPublic

Authored by omalyshe on Nov 21 2017, 4:59 AM.

Details

Summary

kmp_aligned_malloc() always returned NULL on Windows (stub library only) that may cause Fortran application crash.

With this change all memory allocation functions were fixed to use aligned{m,re,rec}alloc() to allocate/reallocate memory. To deallocate that memory _aligned_free() is used in kmp_free().

Diff Detail

Repository
rOMP OpenMP

Event Timeline

omalyshe created this revision.Nov 21 2017, 4:59 AM
hbae accepted this revision.Nov 27 2017, 2:32 PM

LGTM.

This revision is now accepted and ready to land.Nov 27 2017, 2:32 PM
This revision was automatically updated to reflect the committed changes.