Commit Graph

6 Commits (4797b8fdf80da4811757780175ff86c0d24cc49d)

Author SHA1 Message Date
Jacques-Henri Jourdan 63a16e8e67 Major GC hooks are no longer allowed to interact with the GC heap. (#8711)
Earlier documentation comments suggested that major GC hooks can do things with the GC-managed heap.  This is problematic and not used in practice.

This commit changes the documentation comments to make it clear that major GC hools are not allowed to interact with the GC-managed heap.
2019-06-04 19:58:20 +02:00
Jacques-Henri Jourdan b838e48c39 Memprof: Instead of a Poisson process, use a binomial distribution.
The workaround used for ignoring samples in the minor heap in native
mode now makes allocation very slow (or non-terminating) when the
sampling rate is not small enough. This will be fixed when sampling in
the minor heap in native mode will be implemented.
2019-05-21 17:10:16 +02:00
Nicolás Ojeda Bär 8afe2db3c6 Runtime: hide & rename _T macro (#2075)
- Rename _T macro to T to avoid conflict with
- Do not use it for ASCII character literals
- Guard T macro with CAML_INTERNALS
2019-04-14 09:13:24 +02:00
Damien Doligez b6cf38d9d6
MPR#7814: fix non-prefixed symbol names in debug and instrumented runtimes (#1900)
* make `names_of_instructions` a static variable
* use lowercase names for CAML_INSTR functions, variables, and structs
* add changelog entry
2018-07-13 16:06:36 +02:00
Xavier Leroy 7e79186a12
Remove the C plugins mechanism (#1867)
The mechanism complicates the runtime system and is not very general
(only a few system functions are instrumented).  There are other ways
to intercept system calls that are more general and require no
modification to the source code of the runtime system.
2018-07-03 18:22:51 +01:00
Sébastien Hinderer d3e73595e5 Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00