Skip to content

SIL: Only enable instruction leaks checking in the frontend's and SILOpt's modules. #39980

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 1 commit into from
Nov 2, 2021

Conversation

eeckstein
Copy link
Contributor

Leaks checking is not thread safe and e.g. lldb creates multiple SILModules in multiple threads, which would result in false alarms.
Ideally we would make it thread safe, e.g. by putting the instruction counters in the SILModule, but this would be a big effort and it's not worth doing it. Leaks checking in the frontend's and SILOpt's SILModule (not including SILModules created for module interface building) is a good enough test.

rdar://84688015

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

…Opt's modules.

Leaks checking is not thread safe and e.g. lldb creates multiple SILModules in multiple threads, which would result in false alarms.
Ideally we would make it thread safe, e.g. by putting the instruction counters in the SILModule, but this would be a big effort and it's not worth doing it. Leaks checking in the frontend's and SILOpt's SILModule (not including SILModules created for module interface building) is a good enough test.

rdar://84688015
@eeckstein eeckstein force-pushed the fix-silmodule-leak-detection branch from 1c19e95 to 5321a7c Compare November 2, 2021 09:25
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit af2b72e into swiftlang:main Nov 2, 2021
@eeckstein eeckstein deleted the fix-silmodule-leak-detection branch November 2, 2021 14:34
@kastiglione
Copy link
Contributor

thanks

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.

2 participants