Skip to content
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

[SR-10054] Add runtime support to select the root VWT for foreign class imports on ObjC interop enabled runtimes #52457

Open
compnerd opened this issue Mar 6, 2019 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@compnerd
Copy link
Collaborator

compnerd commented Mar 6, 2019

Previous ID SR-10054
Radar None
Original Reporter @compnerd
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee None
Priority Medium

md5: d52806bd7d74b8c0748a733fbaf3ebcd

Issue Description:

With lazy loading for foreign classes, the runtime cannot determine whether the root object type should be the builtin object or the unknown object and currently selects the unknown object. This works for now, but is not ideal. We should be able to encode the root object type in the reserved flags and use that to select the correct VWT

@compnerd
Copy link
Collaborator Author

compnerd commented Mar 6, 2019

CC @rjmccall

@rjmccall
Copy link
Member

rjmccall commented Mar 6, 2019

I don't understand what lazy-loading has to do with it. There aren't any foreign classes today that use ObjC-incompatible refcounting on ObjC-interop targets, though, and if we add any we'll... well, for one, we'll need to think very carefully about whether they really count as classes in the Swift language model.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants