Skip to content

GC collects values it shouldn't with flambda #7861

@vicuna

Description

@vicuna

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions