Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

alloc tests: hook posix_memalign & reallocf #782

Merged
merged 1 commit into from
Jan 25, 2019

Conversation

weissi
Copy link
Member

@weissi weissi commented Jan 25, 2019

Motivation:

Swift started using posix_memalign very recently (Jan 2019) so we need
to hook that too to get correct results.

Modifications:

Hook posix_memalign, reallocf & valloc

Result:

alloc tests should pass again

@weissi weissi requested a review from Lukasa January 25, 2019 15:57
Motivation:

Swift started using posix_memalign very recently (Jan 2019) so we need
to hook that too to get correct results.

Modifications:

Hook posix_memalign, reallocf & valloc

Result:

alloc tests should pass again
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Jan 25, 2019
@Lukasa Lukasa added this to the 2.0.0 milestone Jan 25, 2019
@Lukasa Lukasa merged commit de8d3e2 into apple:master Jan 25, 2019
@weissi weissi deleted the jw-fix-memtests branch January 25, 2019 16:13
weissi added a commit that referenced this pull request Jan 25, 2019
Motivation:

Newer Swift versions are good and we should test them, this one threw a few curveballs at us:
- started using `posix_memalign` which needed fixing in our alloc tests (fixed in #782)
- the optimiser decided not to inline a function that needs to be inlined

Modifications
- `@inline(__always)` to help the optimiser
- update Swift version

Result:
- fixes #727
- fixes #726
weissi added a commit to weissi/swift-nio that referenced this pull request Apr 8, 2019
Motivation:

Swift started using posix_memalign very recently (Jan 2019) so we need
to hook that too to get correct results.

Modifications:

Hook posix_memalign, reallocf & valloc

Result:

alloc tests should pass again

(cherry picked from commit de8d3e2)
weissi added a commit that referenced this pull request Apr 8, 2019
Motivation:

Swift started using posix_memalign very recently (Jan 2019) so we need
to hook that too to get correct results.

Modifications:

Hook posix_memalign, reallocf & valloc

Result:

alloc tests should pass again

(cherry picked from commit de8d3e2)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants