Skip to content

[RuntimeDyld][Windows] Allocate space for dllimport things. #102586

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 2, 2024

Conversation

al45tair
Copy link
Contributor

@al45tair al45tair commented Aug 9, 2024

We weren't taking account of the space we require in the stubs for things that are dllimported, and as a result we could hit the assertion failure for running out of stub space. Fix that.

rdar://133473673

We weren't taking account of the space we require in the stubs for
things that are `dllimport`ed, and as a result we could hit the
assertion failure for running out of stub space.  Fix that.

rdar://133473673
@al45tair
Copy link
Contributor Author

al45tair commented Aug 9, 2024

This is a cherry pick of swiftlang#9071.

No need for `TargetName` to exist separately, really.

Co-authored-by: Saleem Abdulrasool <[email protected]>
@al45tair al45tair force-pushed the eng/PR-133473673-upstream branch from adaa01b to 8be77e9 Compare August 9, 2024 08:56
Copy link

github-actions bot commented Aug 9, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@al45tair
Copy link
Contributor Author

al45tair commented Aug 9, 2024

Looks to me like the build passed just fine, but the attempt to print the ccache/sccache stats failed at the end?

@al45tair
Copy link
Contributor Author

@lhames Any chance you could review this upstream PR? Also, I don't have merge rights and I also don't see how to kick the PR testing apparatus into retrying the build here (the failures don't seem to be anything to do with the PR).

Fix `StringRef::starts_with` use.

Co-authored-by: Ben Barham <[email protected]>
@al45tair al45tair merged commit a0a2531 into llvm:main Sep 2, 2024
8 checks passed
al45tair added a commit that referenced this pull request Sep 2, 2024
al45tair added a commit that referenced this pull request Sep 2, 2024
…106954)

Looks like I missed an `override` (maybe that warning was enabled recently?). Will revert and fix.

Reverts #102586
al45tair added a commit that referenced this pull request Sep 2, 2024
We weren't taking account of the space we require in the stubs for
things that are dllimported, and as a result we could hit the assertion
failure for running out of stub space. Fix that.

Also add a couple of `override` specifiers that were missing last time
(#102586).

rdar://133473673
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants