Skip to content

String view and the GC #159

Open
Open
@Drup

Description

@Drup

In the top level :

# let s = "bla" ;;
val s : string = "bla"
# let s' = allocate string s ;;
val s' : string Ctypes.ptr = (char**) 0x29665f0
# !@s' ;;
- : string = "bla"
# Gc.full_major () ;;
- : unit = ()
# !@s'  ;;
- : string = "\160e\150\002""

According to the documentation, isn't the string view supposed to avoid this issue ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions