-
Notifications
You must be signed in to change notification settings - Fork 76
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
Relational MM: Cluster LMust #1643
base: master
Are you sure you want to change the base?
Conversation
This PR is marked as a precision improvement, but why isn't this a soundness matter? |
module Cluster: sig | ||
include Printable.S | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module Cluster: sig | |
include Printable.S | |
end | |
module Cluster: Printable.S |
val unlock: W.t -> RD.t -> LRD.t | ||
val unlock: W.t -> RD.t -> LRD.t * (Cluster.t list) | ||
|
||
val filter_clusters: LRD.t -> (Cluster.t -> bool) -> LRD.t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the more conventional way is having the predicate first.
(** Mutexes / globals to which values have been published, i.e. for which the initializers need not be read **) | ||
module LMust = struct | ||
include SetDomain.Reverse (SetDomain.ToppedSet (LLock) (struct let topname = "All locks" end)) | ||
include SetDomain.Reverse (SetDomain.ToppedSet (Printable.Prod(LLock)(Cluster)) (struct let topname = "All locks" end)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment should also mention clusters now.
Re-creates #1555 but targeting master this time.
Currently,
LMust
is unclustered even when clusters are employed. This leads to precision loss compared to the unclustered variant when:a
for some clusters onlya
is added toLMust
lock(a)
,V.mutex_inits
is not consulted for any cluster, asa
is inLMust
However,
V.mutex_inits
should still be consulted for clusters that have not been published yet.This also clusters
LMust
and adds a regression test for this behavior.c.f. #1551