Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Remove dependency from ocamltest to the rest of the compiler

    Use the system runtime headers in ocamltest, not OxCaml's (I think this only ever worked by coincidence)

    Stephen Dolan (@stedolan)
  2. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Remove old compaction algorithm

    Since #3179 we've had two compaction algorithms and a tweak for choosing between them. The new algorithm has proved itself, and is essential for huge pages. This PR removes the old algorithm and the switching mechanism.

    Nick Barnes (@NickBarnes)
  3. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Repair overflowed SP when raising Stack_overflow

    If the stack overflows into a guard page, reading or writing through the stack pointer causes a SEGV (for instance, in caml_raise_exception on ARM, when we LEAVE_FUNCTION). So in this PR we adjust it in caml_raise_stack_overflow to point to Stack_base. This means we no longer have to guard against this guard-page possibility when obtaining a backtrace.

    Nick Barnes (@NickBarnes)
  4. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Save+Restore caml_state->preemption across thread switches

    If we've decided we want to preempt a thread, but can't do so yet (eg because we ran the tick handlers that made that decision while allocating from C, so we can't yet perform a preemption effect), we can end up returning back to arbitrary OCaml with Caml_state->preemption equal to Val_long(1). If we then switch to a different systhread, we could hypothetica…

    Aspen Smith (@glittershark)
  5. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Scrape module aliases from parameter interfaces

    Scrape module aliases in parameter interfaces before saving their CMIs, matching ordinary functor parameters.

    Zesen Qian (@riaqn)
  6. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Simplify `%makearray_dynamic_uninit` for static lengths

    The %makearray_dynamic_uninit primitive always results in a caml_c_call, which is a bummer. It would be nice to have a way to directly emit the assembly sequence required to allocate an uninitialized block on either the heap or the stack.

    Nailen Matschke (@nmatschke)
  7. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Simplify `bytes` allocation for static lengths

    As #7335 does for the C calls generated by %makearray_dynamic_uninit, make Cmm_builtins recognize caml_create_bytes, caml_create_local_bytes, caml_alloc_string, and caml_alloc_local_string, and when called with a compile-time constant length, replace them with the assembly sequence required to do the heap/stack allocation.

    Nailen Matschke (@nmatschke)
  8. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Single source of truth for struct offsets in asm stubs

    Some of the asm stubs need field offsets in C structs. This ensures that they get the right values even if the structs change.

    Nick Barnes (@NickBarnes)
  9. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Smaller/faster poll points using SEGV (rework of #2463)

    [rewritten to reflect two-stage interrupt rewrite]

    Nick Barnes (@NickBarnes)
  10. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Sound layout generalisation and nicer errors in inclusion checks

    This raises a nice error when moregen accepts setting a weak variable to a generic one.

    Jakub Bachurski (@jbachurski)
  11. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Stopgap fix of functional update of records with >= max_young_wosize fields

    This is the minimal fix that does the same thing as: #7227

    Pierre Chambart (@chambart)
  12. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Store argument block metadata in .cmi files

    Move argument projection metadata into .cmi files for instantiation and functorization.

    Zesen Qian (@riaqn)
  13. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Support undetermined constructor shapes in `value_kind`

    For records and variants containing any, compute Pvariant value_kinds even when some constructor representations are undetermined, instead of bailing out to Pgenval for the whole type.

    Ryan Tjoa (@rtjoa)
  14. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Use DFS rather than dominators to compute back edges for polling

    In Cfg_loop_infos.compute_back_edges, use back edges as defined by a DFS traversal (i.e. edges to a DFS-tree parent) instead of back edges as defined by dominator analysis (i.e. edges from a node to a dominator).

    Stephen Dolan (@stedolan)
  15. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Use `or_null` instead of `option` where applicable

    Will Sturgeon (@wrsturgeon)
  16. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Various OxCaml-related optimizations

    (WIP)

    Max Slater (@TheNumbat)
  17. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Very large frames need stack checks even when no_stack_checks

    When stack-checks are disabled, we use a memory-protected "guard page" to catch stack overflow. However, functions with stack frames of more than one page can skip over this guard page and crash. So we should retain stack checks on such functions (this is a very few functions, generally huge and time-consuming, so another few instructions on function entry a…

    Nick Barnes (@NickBarnes)
  18. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    Very large frames need stack checks even when no_stack_checks

    When stack-checks are disabled, we use a memory-protected "guard page" to catch stack overflow. However, functions with stack frames of more than one page can skip over this guard page and crash. So we should retain stack checks on such functions (this is a very few functions, generally huge and time-consuming, so another few instructions on function entry a…

    Nick Barnes (@NickBarnes)
  19. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    [Draft] Specialisation primitive

    This PRs introduce a specialization primitive (called Unboxed_closure for historical reasons, this will be changed in the future), meant to be generated by the reaper when lambda-lifting to allow the lifted closures to be specialized on their value-slots-turned-parameters if Simplify runs through the code initially containing the set of closures again (typic…

    Vincent Laviron (@lthls)
  20. Pull requestW39.2026 · 21–27 Sepoxcaml/oxcaml

    [WIP] Annotate the stdlib with statefulness

    dkalinichenko-js