Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid segfaults in j9vmem_testOverlappingSegments
Since the keepCycles array is zero-initialized, if the test is aborted in the very first cycle (i == 0) the cleanup procedure at the end cannot rely on the fact that keepCycles[j] >= i implies that segment j must be freed. Before these changes, such a scenario would cause the test to segfault during cleanup. Signed-off-by: Christian Despres <[email protected]>
- Loading branch information