-
Notifications
You must be signed in to change notification settings - Fork 1.2k
GC collects values it shouldn't with flambda #7861
Copy link
Copy link
Closed
Description
Original bug ID: 7861
Reporter: freyr
Assigned to: @lpw25
Status: resolved (set by @lpw25 on 2018-10-22T08:08:23Z)
Resolution: not a bug
Priority: high
Severity: minor
Platform: x86_64
OS: linux
OS Version: 4.18.11-arch1-1
Version: 4.07.1
Category: middle end (typedtree to clambda)
Monitored by: @nojb
Bug description
For some reason GC collects react events borrowed in Lwt_react.E.select. Lwt_react in flambda build.E.keep or saving event in some variable or reference does not help either. Without flambda GC does not collect values it seems.
Steps to reproduce
A trivial example is attached. With flambda switch Lwt_react.E.with_finaliser functions print, without flambda they do not.
File attachments
Reactions are currently unavailable