Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | New script language for ocamltest (#12185) | Damien Doligez | 2023-04-25 | 1240 | -6705/+9929 |
| | | | | New test script language, all tests translated automatically (see `tools/translate-all-tests`). | ||||
* | HACKING.adoc: document the V=1 option of makefiles | Gabriel Scherer | 2023-04-25 | 1 | -1/+5 |
| | | | | | I needed it this morning and failed to find it without going back to the PR. | ||||
* | Merge pull request #11846 from dra27/win64-abi | Xavier Leroy | 2023-04-22 | 5 | -27/+35 |
|\ | | | | | Simplify and fix the shadow store reservation on Win64 | ||||
| * | AMD64 emitter: replace a trivial `lea` by a `mov` | Xavier Leroy | 2023-04-22 | 1 | -1/+1 |
| | | |||||
| * | Place Win64 ABI shadow store in c_stack_link | David Allsopp | 2023-03-15 | 5 | -25/+30 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Win64 ABI requires the caller to reserve a fixed 32 bytes of stack space prior to the call for the function to spill the four argument registers into (if it chooses). There are three ways C functions are called by OCaml programs. Under Windows, two of them were needlessly wasting space reserving this twice and the third was not reserving it at all. This implementation capitalises on the fact that OCaml 5 no longer uses the C stack for OCaml code and so adds the shadow store to the c_stack_link struct. When in OCaml code, the C stack is therefore left in exactly the required state to call a C function, which removes the need for the stack pointer computations from the backend. Simultaneously, this also fixes a bug, as the shadow store previously was not being reserved at all when calling noalloc C functions. | ||||
| * | Fix register metadata for Win64 ABI | David Allsopp | 2023-03-14 | 2 | -3/+6 |
| | | | | | | | | | | | | | | rbx is normally preserved in the Win64 ABI (as for Unix), but OCaml 5 uses it to save the OCaml stack pointer for direct (noalloc) calls. The fact rbx is clobbered at C call was incorrectly missing in the Win64 register descriptions. | ||||
* | | Check for syntax errors in test scripts instead of ignoring them. (#12194) | Damien Doligez | 2023-04-22 | 3 | -21/+18 |
| | | | | | | check that anything that starts with `(* TEST` is indeed a test script | ||||
* | | Don't include stdbool.h systematically (#12196) | Xavier Leroy | 2023-04-21 | 3 | -2/+2 |
| | | | | | | | | It can cause problem with user code that defines its own `bool` type. Instead, use stdbool.h internally only, and only when really needed. | ||||
* | | Merge pull request #12187 from damiendoligez/fix-ocamldoc-warnings | Florian Angeletti | 2023-04-19 | 4 | -6/+6 |
|\ \ | | | | | | | Fix warnings emitted when compiling the documentation | ||||
| * | | fix broken links in documentation comments | Damien Doligez | 2023-04-17 | 3 | -5/+5 |
| | | | |||||
| * | | suppress spurious alert when compiling stdlib documentation | Damien Doligez | 2023-04-17 | 1 | -1/+1 |
| | | | |||||
* | | | Merge pull request #11876 from gadmm/echec_remove_global_roots_in_finalizer | Gabriel Scherer | 2023-04-18 | 2 | -15/+31 |
|\ \ \ | | | | | | | | | Document the situation regarding `remove_global_root` inside custom finalizers | ||||
| * | | | Document the situation regarding remove_global_root inside custom finalizers | Guillaume Munch-Maccagnoni | 2023-04-18 | 2 | -15/+31 |
| | | | | |||||
* | | | | Merge pull request #12190 from shindere/fix-zstd-support-detection | Gabriel Scherer | 2023-04-18 | 2 | -8/+120 |
|\ \ \ \ | |/ / / |/| | | | Take host into account when looking for pkg-config | ||||
| * | | | Take host into account when looking for pkg-config | Sébastien Hinderer | 2023-04-18 | 2 | -2/+110 |
| | | | | | | | | | | | | | | | | Try ${host}-pkg-config before falling back to pkg-config | ||||
| * | | | configure: use a variable to refer to pkg-config | Sébastien Hinderer | 2023-04-18 | 2 | -8/+12 |
|/ / / | | | | | | | | | | | | | This is to prepare the next commit: when cross-compiling the right pkg-config to use is the one giving information on the host system. | ||||
* | | | Merge pull request #12170 from gasche/pthread_getaffinity-configure-fix | Gabriel Scherer | 2023-04-18 | 3 | -9/+27 |
|\ \ \ | | | | | | | | | fix the configure check for pthread_getaffinity_np | ||||
| * | | | fix the configure check for pthread_getaffinity_np | David Allsopp | 2023-04-17 | 3 | -9/+27 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | AC_COMPILE_IFELSE only compiles, but the lack of the function results in a linking error, not a compilation error. fixes #12101 | ||||
* | | | | Update GDB scripts to work with OCaml 5 (#12179) | Nick Barnes | 2023-04-17 | 3 | -177/+275 |
|/ / / | | | | | | | | | | Update gdb-macros and gdb_ocamlrun.py to work with OCaml 5. | ||||
* | | | Merge pull request #12171 from askvortsov1/as/extern_state_refactor | Gabriel Scherer | 2023-04-17 | 2 | -26/+42 |
|\ \ \ | | | | | | | | | extern.c: raise OOM instead of passing null in `caml_output_*` entrypoints | ||||
| * | | | feat: refactor `extern_free_stack` | Alexander Skvortsov | 2023-04-16 | 1 | -8/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | Split out `extern_init_stack` into a separate function, so that the code for initializing and resetting the extern_state stack is not duplicated. Signed-off-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com> | ||||
| * | | | chore: adjust Changes | Alexander Skvortsov | 2023-04-16 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | Signed-off-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com> | ||||
| * | | | feat: `caml_fatal_error` on misuse of serialize functions | Alexander Skvortsov | 2023-04-16 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | These should only be called from within a `caml_output_*` entrypoint context. Signed-off-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com> | ||||
| * | | | extern.c: for consistent style with `intern.c`, rename `extern_state` var to `s` | Alexander Skvortsov | 2023-04-16 | 1 | -12/+11 |
| | | | | | | | | | | | | | | | | Signed-off-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com> | ||||
| * | | | extern.c: raise OOM instead of passing null in `caml_output_*` entrypoints | Alexander Skvortsov | 2023-04-16 | 1 | -10/+13 |
|/ / / | | | | | | | | | | Signed-off-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com> | ||||
* | | | Merge pull request #12172 from gasche/major_gc_PAGE_MASK | Gabriel Scherer | 2023-04-13 | 1 | -21/+33 |
|\ \ \ | | | | | | | | | major_gc.c: avoid using a PAGE_MASK macro | ||||
| * | | | major_gc.c: turn macros into static inline | Gabriel Scherer | 2023-04-10 | 1 | -9/+15 |
| | | | | | | | | | | | | | | | | Co-authored-by: Stefan Muenzel <source@s.muenzel.net> | ||||
| * | | | major_gc.c: rename PAGE into CHUNK to avoid the PAGE_MASK macro | Gabriel Scherer | 2023-04-08 | 1 | -19/+25 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #12101 reports a build warning on android where a macro PAGE_MASK is already defined by the system. We rename this macro into CHUNK_MASK, along with some documentation of the representation of the compressed mark stack. | ||||
| * | | | [minor] clarify the input type of major_gc.c:addr_map | Gabriel Scherer | 2023-04-08 | 1 | -5/+5 |
| | | | | |||||
* | | | | Merge pull request #12072 from jmid/sys-rename-docu | Gabriel Scherer | 2023-04-12 | 4 | -5/+42 |
|\ \ \ \ | | | | | | | | | | | Document that Sys.rename works on directories too | ||||
| * | | | | Add negative Sys.rename test with non-empty target dir | Jan Midtgaard | 2023-03-14 | 2 | -0/+9 |
| | | | | | |||||
| * | | | | Add Changes entry for Sys.rename elaboration | Jan Midtgaard | 2023-03-09 | 1 | -0/+3 |
| | | | | | |||||
| * | | | | Add Sys.rename dir tests | Jan Midtgaard | 2023-03-09 | 2 | -1/+25 |
| | | | | | |||||
| * | | | | Document that Sys.rename works on directories too | Jan Midtgaard | 2023-03-09 | 1 | -4/+5 |
| | | | | | |||||
* | | | | | Merge pull request #12130 from NickBarnes/nick-11934-weak-get-copy | Gabriel Scherer | 2023-04-11 | 2 | -44/+79 |
|\ \ \ \ \ | | | | | | | | | | | | | Fix #11934 with more conservative Weak.get_copy | ||||
| * | | | | | Changes: add Francois Bobot as PR reviewer. | Nick Barnes | 2023-03-29 | 1 | -1/+1 |
| | | | | | | |||||
| * | | | | | Review response: simplify loop, separate copying function. | Nick Barnes | 2023-03-29 | 1 | -31/+51 |
| | | | | | | |||||
| * | | | | | Update Changes. | Nick Barnes | 2023-03-23 | 1 | -0/+3 |
| | | | | | | |||||
| * | | | | | Remove trailing whitespace. | Nick Barnes | 2023-03-22 | 1 | -1/+1 |
| | | | | | | |||||
| * | | | | | Fix infix closure handling. | Nick Barnes | 2023-03-22 | 1 | -9/+17 |
| | | | | | | |||||
| * | | | | | Much more conservative version of ephe_get_field_copy. | Nick Barnes | 2023-03-22 | 1 | -43/+47 |
| | | | | | | |||||
* | | | | | | Merge pull request #12178 from TheLortex/runtime-events-consumer-fixup | Gabriel Scherer | 2023-04-11 | 2 | -1/+4 |
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | runtime events consumer: fix invalid value returned from runtime_events_read_poll | ||||
| * | | | | | runtime events consumer: fix invalid value returned from ↵ | Lucas Pluvinage | 2023-04-11 | 2 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | runtime_events_read_poll | ||||
* | | | | | | first commit after branching 5.1 | Florian Angeletti | 2023-04-11 | 6 | -31/+57 |
| | | | | | | |||||
* | | | | | | last commit before branching 5.1 | Florian Angeletti | 2023-04-11 | 4 | -20/+20 |
| | | | | | | |||||
* | | | | | | Bump magic numbers before branching 5.1 | Florian Angeletti | 2023-04-11 | 4 | -14/+14 |
|/ / / / / | |||||
* | | | | | HACKING.adoc: recommend `make -j` | Gabriel Scherer | 2023-04-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | `make -j` is now used by default in all opam installs, it should be fine for clean builds | ||||
* | | | | | Merge pull request #12169 from gasche/no_reified_var_counter | Gabriel Scherer | 2023-04-08 | 4 | -18/+26 |
|\ \ \ \ \ | |_|_|/ / |/| | | | | No reified var counter | ||||
| * | | | | changes | Takafumi Saikawa | 2023-04-08 | 1 | -0/+3 |
| | | | | | |||||
| * | | | | use Misc.find_first_mono | Takafumi Saikawa | 2023-04-08 | 1 | -9/+10 |
| | | | | |