This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][OMPT] Fix memory leak when using serialized GCC compatibility code
ClosedPublic

Authored by jlpeyton on Aug 11 2022, 9:19 AM.

Details

Summary

Serialized parallels allocate lightweight task teams on the heap
but never free them in the corresponding join. This patch adds a wrapper
around the allocation (if ompt enabled) and also adds the corresponding
free in the join call.

Diff Detail

Event Timeline

jlpeyton created this revision.Aug 11 2022, 9:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2022, 9:19 AM
jlpeyton requested review of this revision.Aug 11 2022, 9:19 AM
This revision is now accepted and ready to land.Aug 11 2022, 1:15 PM
jlpeyton updated this revision to Diff 451962.Aug 11 2022, 1:24 PM

My mistake here. Uploading diff with full context for the record.

This revision was landed with ongoing or failed builds.Aug 11 2022, 1:26 PM
This revision was automatically updated to reflect the committed changes.