forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[reviewed by @benharsh] Following in the steps of other recent distribution-related PRs, this converts the `Private` class to a `privateDist` record as a step towards deprecating support for the `dmap` type. Where previous PRs have done this as two separate steps, this one does it all at once. This one is a bit less satisfying than previous ones, primarily because `PrivateDist` is less satisfying than other distributions. For example, it leaks memory when anything other than `PrivateSpace` is used, and existing testing doesn't really use anything other than `PrivateSpace`. As a result, I incorporated all the same boilerplate and patterns as for the other distributions that have been converted, and made `PrivateSpace` better as a result (e.g., you can use copy initialization with it now!), yet there aren't many tests that show it's working better or worse than before. My deprecated dmapType.chpl test was intended to be such a test, and it does work, but it also demonstrates the aforementioned memory leak, so I put that code into a conditional that doesn't run to avoid having to deal with that while still checking that the deprecation warnings are working. While here, I realized for the first time that my dmapType.chpl test didn't run using multiple locales even though it's exercising distributions and could, so I added a numlocales file to lock that in.
- Loading branch information
Showing
4 changed files
with
132 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4 |