Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make chpl_library_finalize re-entrant
We were encountering a problem when chpl_library_finalize was getting called multiple times - exiting the Python program would result in: ``` Assertion failed: (data && data->bundle), function chpl_task_getInfoChapel, file chpl-tasks-impl-fns.h, line 140. ``` because our generated `__init__.py` file added an `atexit` call to clean up the runtime, but code could invoke an explicit cleanup call as well. I need to take a look if we explicitly state you need to make that cleanup call, but this may also help in cases where multiple Chapel libraries are used in a Python program. ---- Signed-off-by: Lydia Duncan <[email protected]>
- Loading branch information