Florian Angeletti
3d6dc0fa64
Merge pull request #9955 from damiendoligez/fix-7813
...
Fix #7813 (major GC fails to start)
2020-11-24 16:20:53 +01:00
David Allsopp
f6279a64b5
Switch the compiler CI builds from Travis to GitHub actions ( #10036 )
...
* Switch compiler builds and tests to GitHub actions
* Expose ${cc} in ocamltest
* Allow lib-bigarray-2/bigarrfml.ml to run on 32-bit
* Simplify environment variables passed to scripts
* Reduce matrix to 3 builds
* Move minimum build into Jenkins other-configs
2020-11-24 14:16:31 +01:00
Guillaume Munch-Maccagnoni
2109946e0f
Ensure atomicity in the Atomic module is respected by flambda ( #10035 )
...
Prevent inlining of some of the functions, otherwise Flambda can move unrelated allocations inside the critical sections, making them non-atomic.
2020-11-24 11:48:33 +01:00
Jacques-Henri Jourdan
328ebc1ea3
Merge pull request #10025 from stedolan/memprof-custom
...
Track caml_alloc_custom_mem allocations with Statmemprof
2020-11-24 10:06:52 +01:00
Gabriel Scherer
e6acde7586
Merge pull request #10010 from gasche/extension_constructor_scopes
...
typing: fix the scope of extension constructor declarations
2020-11-24 07:17:59 +01:00
Gabriel Scherer
f794d799ad
typing: fix the scope of extension constructor declarations
...
fixes #9970
2020-11-23 14:30:59 +01:00
Leo White
d0ddf25f3d
Merge pull request #9991 from lpw25/reproducible-no-alias-deps
...
Fix reproducibility for `-no-alias-deps`
2020-11-22 18:22:48 +00:00
Gabriel Scherer
1a7e3df327
Merge pull request #9998 from lthls/afl-lazy
...
Prevent inlining of CamlinternalLazy.force
2020-11-22 15:25:31 +01:00
Gabriel Scherer
592e9eb2ad
missing Changes entry for 10007
2020-11-22 15:24:26 +01:00
Gabriel Scherer
fe026c301d
Merge pull request #10007 from AbstractMachinesLab/return-signature-when-typing
...
Expose module signature when typing implementation
2020-11-22 15:21:10 +01:00
Gabriel Scherer
185d282d6a
Merge pull request #10034 from Fourchaux/typos
...
Typos (documentation)
2020-11-22 15:17:40 +01:00
Leo White
0166a7018e
Add Changes entry
2020-11-22 13:47:22 +00:00
Leo White
e7dbaeb8ce
Fix reproducibility for `-no-alias-deps`
2020-11-22 13:44:28 +00:00
Gabriel Scherer
1abdcac1d7
Merge pull request #9651 from trefis/rematch-partial-handler
...
pattern-matching compiler: refactor the toplevel handling of partiality
2020-11-21 14:09:43 +01:00
Vincent Laviron
a09a2a20f8
Update .depend
2020-11-21 12:19:18 +01:00
Vincent Laviron
0f30379ad9
Use Sys.opaque_identity instead
2020-11-21 12:19:18 +01:00
Vincent Laviron
e78db7b6a5
Prevent inlining of CamlinternalLazy.force
2020-11-21 11:42:17 +01:00
Gabriel Scherer
67ba8c36cc
matching: use toplevel_handler in for_tupled_function
...
This appears to change the function behavior with respect to the
Unused exception, but we believe that the change is correct. It makes
the code more consistent with other toplevel compilation functions.
2020-11-21 10:16:48 +01:00
Gabriel Scherer
7d777f20af
matching: factorize the code handling toplevel matching failures
2020-11-21 10:16:48 +01:00
Gabriel Scherer
def877e351
matching: [minor] inline the single-use split_and_precompile
...
This comes from a suggestion by Florian Angeletti in
https://github.com/ocaml/ocaml/pull/9447#discussion_r408910756
2020-11-21 10:16:48 +01:00
Anil Madhavapeddy
45ec93e0f4
Add macOS/arm64 to the Tier 1 supported architecture list ( #10033 )
2020-11-20 17:25:27 +01:00
JPR
f90358666e
Typos (doc)
2020-11-20 14:05:49 +01:00
Jacques Garrigue
b47c34912c
Mark datatypes as injective in recursive module approximations ( #10029 )
2020-11-20 16:29:23 +09:00
Gabriel Scherer
547f9b8126
minor .mailmap additions
2020-11-19 14:03:44 +01:00
Stephen Dolan
8caa14c3bd
check-typo
2020-11-18 09:22:26 +00:00
Jacques-Henri Jourdan
3f1c3bed3e
Merge pull request #10024 from stedolan/alloc-shr-cleanup
...
Clean up caml_alloc_shr
2020-11-17 22:04:24 +01:00
Stephen Dolan
01c08d3c0c
Clean up caml_alloc_shr
2020-11-17 11:59:05 +00:00
Stephen Dolan
82805be2e2
Changes
2020-11-17 11:31:21 +00:00
Stephen Dolan
7cd0b3981b
Memprof: refactor by introducing maybe_track_block
2020-11-17 11:30:38 +00:00
Stephen Dolan
6a3af5c926
Add Gc.Memprof.allocation_source
2020-11-17 11:17:52 +00:00
Stephen Dolan
20b7d8b2a7
Try expanding aliases in Ctype.nondep_type_rec ( #10005 )
2020-11-17 11:10:59 +00:00
Stephen Dolan
3631d4b543
Track caml_alloc_custom_mem allocations with Statmemprof
2020-11-16 13:42:16 +00:00
Gabriel Scherer
6d1c87a49a
Merge pull request #10023 from gasche/minor-refactors-in-Typemod.Signature_names
...
Minor refactorings in typemod.signature names
2020-11-16 10:50:04 +01:00
Gabriel Scherer
b24f19485c
typemod: [minor] get rid of broken commented-out code
2020-11-14 18:40:57 +01:00
Gabriel Scherer
c35760d36d
typemod: refactor Signature_names.check_sig_item
...
just a refactor for concision/readability
2020-11-14 18:40:10 +01:00
Gabriel Scherer
f43b49dda6
typemod: [refactor] pass `t` to `check` rather than just one table
...
We want to implement support for groups, several declarations that
must be removed together. For this we need `check` to be able to also
mark declarations of other kinds to be removed, and this means having
access to the whole `t.bounds` value, not just a single table.
2020-11-14 18:40:10 +01:00
Leo White
4822a88248
Improve error message for aliases to the current compilation unit ( #10008 )
2020-11-08 19:06:10 +01:00
Leandro Ostera
5278e3fe37
Fix typo checks
2020-11-06 23:49:19 +01:00
Xavier Leroy
f14d6d371f
Minor updates
2020-11-06 19:47:17 +01:00
Gabriel Scherer
d42e4663f6
Merge pull request #10006 from garrigue/type_cases_set_state
...
must use set_state rather than backtrack in Typecore.type_cases
2020-11-06 18:31:25 +01:00
Leandro Ostera
f4143fd372
Document Typedtree.implementation
2020-11-06 18:25:20 +01:00
Leandro Ostera
a0b7aff645
Fix .depend file
...
No change entry needed
2020-11-06 09:24:34 +01:00
Leandro Ostera
b91a90a4a7
Fix linting errors
2020-11-06 09:20:45 +01:00
Leandro Ostera
1b085d3840
Rename Typedtree.t to Typedtree.implementation
2020-11-05 21:19:44 +01:00
Leandro Ostera
ee2f3b428c
Move typed_impl to Typedtree.t
2020-11-05 19:06:12 +01:00
Leandro Ostera
3be9e19c17
Fix dependency between Printtyped and Typemod
2020-11-05 18:49:28 +01:00
Leandro Ostera
f6e428acf2
Introduce typed_impl record
2020-11-05 18:29:45 +01:00
Leandro Ostera
3a125b8c3c
Expose module signature when typing implementation
...
While working on a new backend for OCaml to generate Erlang sources, I
found the need to read the .cmi file back into a `Types.signature`
value.
@Drup spotted that I was reading the file and pointed out this value was
already being read during the type checking process.
A quick check at the `Typedtree.module_coercion` showed us that it would
be difficul to extract the same information that is readily available in
the signature value.
This change will expose the signature value directly, so other backends
relying on this signature information do not need to do the extra work
of reading it again.
2020-11-05 17:33:19 +01:00
Jacques Garrigue
9e181ca8f4
must use set_state rather than backtrack in Typecore.type_cases
2020-11-05 11:12:01 +09:00
Gabriel Scherer
479ec01e28
Merge pull request #10000 from gasche/9999
...
fix -dsource printing of the pattern (A as x | (B as x))
2020-11-04 09:07:50 +01:00