-
Notifications
You must be signed in to change notification settings - Fork 44
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
Extend flowistry to types with interior mutability #53
Comments
That's true only for owned types though, something like |
@WaffleLapkin those types aren't using interior mutability, they're using unsafe. Writing to a |
@jyn514 pointers can point to the heap, they not necessarily come from |
@WaffleLapkin ah, sure. But I think it's ok to support interior mutability without first supporting raw pointers, the second will be much more difficult (it probably will require whole-program analysis). |
You mentioned two things during your thesis defense:
AtomicUsize::set
are not considered by flowistry to affect the data flow of the program.I think it would be possible to extend this to interior mutability by using the intra-procedural analysis that looks into dependencies, but only for types which have interior mutability. The compiler already knows statically which types have interior mutability, because they have to contain an
UnsafeCell
(anything else is already undefined behavior).The text was updated successfully, but these errors were encountered: