Skip to content
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

[ocaml] Restore compatibility with OCaml 4.12 #3583

Closed
ejgallego opened this issue Jun 28, 2020 · 2 comments · Fixed by ocaml/opam-repository#16888
Closed

[ocaml] Restore compatibility with OCaml 4.12 #3583

ejgallego opened this issue Jun 28, 2020 · 2 comments · Fixed by ocaml/opam-repository#16888

Comments

@ejgallego
Copy link
Collaborator

OCaml 4.12 has introduced a new field in the Gc.stats record,
forced_major_collections. This makes compilation of Dune fail due to
src/catapult/catapult.ml:fake_gc_stat

There could be several solutions to this, such as calling
Gc.quick_stats and then overriding the set of safe fields, but OMMV.

cc: #2298

@ghost
Copy link

ghost commented Jun 29, 2020

AFAIU, these stats are completely unused. So just using the result of Gc.quick_stats unmodified seems good to me. @emillon WDYT?

@emillon
Copy link
Collaborator

emillon commented Jun 29, 2020

They're just used in the expect tests for catapult. Since we don't emit a counter event for this field, Gc.quick_stat + overridding should work.

ejgallego added a commit to ejgallego/dune that referenced this issue Jun 29, 2020
OCaml 4.12 has introduced a new field in the `Gc.stats` record,
`forced_major_collections`. This makes compilation of Dune fail due to
`src/catapult/catapult.ml:fake_gc_stat`

We call `Gc.quick_stats` and override the set of safe fields.

Fixes: ocaml#3583

cc: ocaml#2298
ejgallego added a commit to ejgallego/dune that referenced this issue Jun 29, 2020
OCaml 4.12 has introduced a new field in the `Gc.stats` record,
`forced_major_collections`. This makes compilation of Dune fail due to
`src/catapult/catapult.ml:fake_gc_stat`

We call `Gc.quick_stats` and override the set of safe fields.

Fixes: ocaml#3583

cc: ocaml#2298
ejgallego added a commit to ejgallego/dune that referenced this issue Jun 29, 2020
OCaml 4.12 has introduced a new field in the `Gc.stats` record,
`forced_major_collections`. This makes compilation of Dune fail due to
`src/catapult/catapult.ml:fake_gc_stat`

We call `Gc.quick_stats` and override the set of safe fields.

Fixes: ocaml#3583

cc: ocaml#2298

Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
ejgallego added a commit to ejgallego/dune that referenced this issue Jun 29, 2020
OCaml 4.12 has introduced a new field in the `Gc.stats` record,
`forced_major_collections`. This makes compilation of Dune fail due to
`src/catapult/catapult.ml:fake_gc_stat`

We call `Gc.quick_stats` and override the set of safe fields.

Fixes: ocaml#3583

cc: ocaml#2298

Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
ejgallego added a commit to ejgallego/dune that referenced this issue Jun 30, 2020
OCaml 4.12 has introduced a new field in the `Gc.stats` record,
`forced_major_collections`. This makes compilation of Dune fail due to
`src/catapult/catapult.ml:fake_gc_stat`

We call `Gc.quick_stats` and override the set of safe fields.

Fixes: ocaml#3583

cc: ocaml#2298

Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
ejgallego added a commit to ejgallego/dune that referenced this issue Jun 30, 2020
OCaml 4.12 has introduced a new field in the `Gc.stats` record,
`forced_major_collections`. This makes compilation of Dune fail due to
`src/catapult/catapult.ml:fake_gc_stat`

We call `Gc.quick_stats` and override the set of safe fields.

Fixes: ocaml#3583

cc: ocaml#2298

Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
anmolsahoo25 pushed a commit to anmolsahoo25/dune that referenced this issue Aug 12, 2020
OCaml 4.12 has introduced a new field in the `Gc.stats` record,
`forced_major_collections`. This makes compilation of Dune fail due to
`src/catapult/catapult.ml:fake_gc_stat`

We call `Gc.quick_stats` and override the set of safe fields.

Fixes: ocaml#3583

cc: ocaml#2298

Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
rgrinberg pushed a commit that referenced this issue Aug 14, 2020
OCaml 4.12 has introduced a new field in the `Gc.stats` record,
`forced_major_collections`. This makes compilation of Dune fail due to
`src/catapult/catapult.ml:fake_gc_stat`

We call `Gc.quick_stats` and override the set of safe fields.

Fixes: #3583

cc: #2298

Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants