Skip to content

Possibility of lost events due to use of edge-triggered Condition in entr(...) #837

@frankier

Description

@frankier

@JanisErdmanis caught a possible race-condition in Revise.entr(...)

In particular in these lines:

Revise.jl/src/callbacks.jl

Lines 163 to 166 in 13a5eb7

while true
wait(revision_event)
revise(throw=true)
end

It looks like any event fired while Revise.revise() is running will be lost. I guess something level-triggered like https://docs.julialang.org/en/v1/base/parallel/#Base.Event could be used. This would assume that there is only one listener, which is probably reasonable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions