Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The two usual package for the first beta release for OCaml 5.0.
Compared to the alpha release, there are many small internal runtime fixes (in particular in the systhreads library).
At the user level, the interface of the
Domain
andEffect
module has been tweaked to be (hopefully) more forward-compatible:Effecŧ
module.Domain.recommended_domain_count
is no longer a constant and the functionDomain.at_each_spawn
has been removed.The standard library should but stable now.
On Windows compiled executables no longer require the winpthread library to be in the user path.
There were also many internal bug fixes as detailed below.
Stdlib update since 5.0.0~alpha1
(Christiano Haesbaert, Konstantin Belousov, review by David Allsopp,
KC Sivaramakrishnan, Gabriel Scherer, Nicolas Ojeda Bar)
11423: Move the effect exceptions to the Effect module
11593: Remove Domain.at_each_spawn
Bug fixes since 5.0.0~alpha1
11303: Ensure that GC is not invoked from bounds check failures
(Stephen Dolan, review by Sadiq Jaffer and Xavier Leroy)
5299, 4787, 11138, 11272, 11506: To help debugging,
Caml_state
now dynamically checks that the domain lock is held, and fails
otherwise (with a fatal error at most entry points of the C API, or
systematically in debug mode). A new variable
Caml_state_opt
isintroduced, and is
NULL
when the domain lock is not held. Thisallows to test from C code if the current thread holds the lock of
its domain.
(Guillaume Munch-Maccagnoni, review by Florian Angeletti, Damien
Doligez, Sadiq Jaffer, Xavier Leroy, and Gabriel Scherer)
11223: The serialization format of custom blocks changed in 4.08,
but the deserializer would still support the pre-4.08 format. OCaml
5.x removed support for this old format; provide a clear error message
in this case.
(Hugo Heuzard, review by Gabriel Scherer)
11504, 11522: Use static allocation in
caml_make_float_vect
inno-flat-float-array mode, it's more efficient and avoids a a race condition
(Xavier Leroy, report by Guillaume Munch-Maccagnoni, review by David Allsopp)
11461, 11466: Fix gethostbyaddr for IPv6 arguments and make it domain-safe
(Olivier Nicole, Nicolás Ojeda Bär, David Allsopp and Xavier Leroy,
review by the same)
11479: Make Unix.symlink domain-safe on Windows
(Olivier Nicole, review by Xavier Leroy and David Allsopp)
11294: Switch minimum required autoconf to 2.71.
(David Allsopp, review by Xavier Leroy)
11370, 11373: Don't pass CFLAGS to flexlink during configure.
(David Allsopp, report by William Hu, review by Xavier Leroy and
Sébastien Hinderer)
11487: Thwart FMA test optimization during configure
(William Hu, review by David Allsopp and Sébastien Hinderer)
11468: Fix regression from 10186 (OCaml 4.13) detecting IPv6 on Windows for
mingw-w64 i686 port.
(David Allsopp, review by Xavier Leroy and Sébastien Hinderer)
11482, 11542: Fix random crash in large closure allocation
(Damien Doligez, report by Thierry Martinez and Vincent Laviron, review by
Xavier Leroy)
11508, 11509: make Bytes.escaped domain-safe
(Christiano Haesbaert and Gabriel Scherer,
review by Xavier Leroy,
report by Jan Midtgaard and Tom Kelly)
11516, 11524: Fix the
deprecated_mutable
attribute.(Chris Casinghino, review by Nicolás Ojeda Bär and Florian Angeletti)
11576: Fix bug in Bigarray.Genarray.init in the the case of zero-dimensional
arrays.
(Nicolás Ojeda Bär, Jeremy Yallop, report by Masayuki Takeda, review by Jeremy
Yallop and Florian Angeletti)
11587: Prevent integer comparison from being used on pointers
(Vincent Laviron, review by Gabriel Scherer)
Documentation update since 5.0.0~alpha1
(KC Sivaramakrishnan, review by Damien Doligez, Anil Madhavapeddy, Gabriel
Scherer, Thomas Leonard, Tom Ridge, Xavier Leroy, Luc Maranget, Fabrice
Buoro, Olivier Nicole, Guillaume Munch-Maccagnoni, Jacques-Henri Jourdan)