ocaml/runtime
Jacques-Henri Jourdan 6d3065be78 Memprof: get rid of the idx_ptr pointers.
Instead, we use a thread-local variable [callback_status] which
contains the index of the corresponding entry when a callback is
running. We can do this since there can only be one running callback
at the same time in a given thread.

This lifts the restriction forbidding the call of Thread.exit from a
memprof callback.
2020-10-19 17:11:11 +02:00
..
caml Memprof: provide the guarantee that an allocation callback is always run in the same thread the allocation takes place. 2020-10-19 17:08:17 +02:00
Makefile Remove Spacetime 2020-10-08 20:28:12 +02:00
afl.c check if shmat is available to use afl 2020-07-17 12:44:16 -03:00
alloc.c Remove Spacetime 2020-10-08 20:28:12 +02:00
amd64.S Fix mergeable section flags and use .rodata.cst16 where appropriate (#9981) 2020-10-18 13:57:53 +02:00
amd64nt.asm Remove Spacetime 2020-10-08 20:28:12 +02:00
arm.S Per-architecture support for allocation size info in frame tables. 2019-10-23 09:24:13 +01:00
arm64.S arm64: remove misleading comment 2020-07-26 21:21:37 +00:00
array.c Remove Spacetime 2020-10-08 20:28:12 +02:00
backtrace.c Print function names (derived from Lambda.scoped_location) in backtraces 2020-04-27 12:58:53 +01:00
backtrace_byt.c Lock channels before doing I/O 2020-07-27 17:29:39 +01:00
backtrace_nat.c Print function names (derived from Lambda.scoped_location) in backtraces 2020-04-27 12:58:53 +01:00
bigarray.c Support marshalling of bigarrays with dimensions that don't fit in 4 bytes (#8791) 2020-04-29 18:51:01 +02:00
callback.c Get rid of dead code that was introduced for an hypothetical JIT (#9710) 2020-07-05 19:41:45 +02:00
clambda_checks.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
codefrag.c More efficient management of code fragments (#9654) 2020-06-11 10:39:19 +02:00
compact.c clean up and fix GC message 0x1 (#9949) 2020-10-09 12:02:00 +02:00
compare.c Remove some `#ifndef NO_NAKED_POINTERS` that are now redundant 2020-06-23 10:30:30 +02:00
custom.c Declare caml_*_ops in headers 2020-09-04 15:25:49 +01:00
debugger.c Remaining functions requiring explicit export 2020-09-18 12:11:20 +01:00
domain.c Add a naked pointers dynamic checker (#9956) 2020-10-05 14:44:31 +02:00
dune Remove Spacetime 2020-10-08 20:28:12 +02:00
dynlink.c Runtime: hide & rename _T macro (#2075) 2019-04-14 09:13:24 +02:00
dynlink_nat.c Remove Spacetime 2020-10-08 20:28:12 +02:00
eventlog.c Represent eventlog_startup_pid as long int 2020-07-17 19:49:27 +02:00
extern.c Remove Spacetime support in marshaller 2020-10-08 20:28:15 +02:00
fail_byt.c Remaining functions requiring explicit export 2020-09-18 12:11:20 +01:00
fail_nat.c Remaining functions requiring explicit export 2020-09-18 12:11:20 +01:00
finalise.c Remove Spacetime 2020-10-08 20:28:12 +02:00
fix_code.c More efficient management of code fragments (#9654) 2020-06-11 10:39:19 +02:00
floats.c remove caml_init_ieee_floats() (#9506) 2020-04-28 16:19:23 +02:00
freelist.c Garbage collector colours change (#9756) 2020-09-17 17:24:04 +02:00
gc_ctrl.c clean up and fix GC message 0x1 (#9949) 2020-10-09 12:02:00 +02:00
gen_domain_state32_inc.awk Simplify awk scripts, fix comments and signatures. 2019-08-23 09:50:05 +05:30
gen_domain_state64_inc.awk Simplify awk scripts, fix comments and signatures. 2019-08-23 09:50:05 +05:30
gen_primitives.sh Remove Spacetime 2020-10-08 20:28:12 +02:00
globroots.c globroots.c: adapt to no-naked-pointers mode (#9683) 2020-06-15 13:39:35 +02:00
hash.c hash.c: remove the caml_hash_univ_param function 2020-07-19 19:58:06 +02:00
i386.S microoptimise i386.S 2019-11-04 12:07:22 +00:00
i386nt.asm Signal handling in native code without the page table (#9682) 2020-06-15 14:17:42 +02:00
instrtrace.c Fix invalid format specifiers 2020-07-17 19:49:27 +02:00
intern.c Remove Spacetime support in marshaller 2020-10-08 20:28:15 +02:00
interp.c Get rid of dead code that was introduced for an hypothetical JIT (#9710) 2020-07-05 19:41:45 +02:00
ints.c Optimized 3-way comparisons for int and float (#2250) 2019-03-23 15:51:59 +01:00
io.c Merge pull request #9884 from dra27/cygwin64-prereq-6 2020-09-09 09:24:34 +01:00
lexing.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
main.c Merge pull request #9902 from dra27/main-cleanup 2020-09-11 09:34:47 +01:00
major_gc.c clean up and fix GC message 0x1 (#9949) 2020-10-09 12:02:00 +02:00
md5.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
memory.c Remove Spacetime support in marshaller 2020-10-08 20:28:15 +02:00
memprof.c Memprof: get rid of the idx_ptr pointers. 2020-10-19 17:11:11 +02:00
meta.c Get rid of dead code that was introduced for an hypothetical JIT (#9710) 2020-07-05 19:41:45 +02:00
minor_gc.c Memprof: provide the guarantee that an allocation callback is always run in the same thread the allocation takes place. 2020-10-19 17:08:17 +02:00
misc.c Remove Spacetime 2020-10-08 20:28:12 +02:00
obj.c Remove Spacetime 2020-10-08 20:28:12 +02:00
parsing.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
power.S PowerPC, System Z: do not reset backtrace_pos in caml_raise_exception (#9428) 2020-04-07 15:47:55 +02:00
printexc.c Memprof: disable sampling when memprof is suspended. (#9628) 2020-06-10 13:25:11 +01:00
riscv.S riscv: fix register usage (#9890) 2020-09-08 09:55:19 +02:00
roots_byt.c Use different symbol names for caml_do_local_roots on bytecode and native code (#9503) 2020-08-25 21:22:34 +01:00
roots_nat.c Use different symbol names for caml_do_local_roots on bytecode and native code (#9503) 2020-08-25 21:22:34 +01:00
s390x.S PowerPC, System Z: do not reset backtrace_pos in caml_raise_exception (#9428) 2020-04-07 15:47:55 +02:00
signals.c Remove Spacetime 2020-10-08 20:28:12 +02:00
signals_byt.c Remaining functions requiring explicit export 2020-09-18 12:11:20 +01:00
signals_nat.c Remove Spacetime 2020-10-08 20:28:12 +02:00
signals_osdep.h On the iPhone simulator the machine context field has two underscores 2020-07-25 08:39:09 +00:00
skiplist.c Refactor skiplist to avoid UB casts (#9660) 2020-06-10 16:40:51 +02:00
stacks.c Revised linking of trap frames in bytecode interpreter stack 2020-06-18 15:06:24 +02:00
startup_aux.c Memprof: provide the guarantee that an allocation callback is always run in the same thread the allocation takes place. 2020-10-19 17:08:17 +02:00
startup_byt.c Remove caml_ensure_spacetime_dot_o_is_included 2020-09-14 11:42:59 +01:00
startup_nat.c Remove Spacetime 2020-10-08 20:28:12 +02:00
str.c Fix force-safe-string on Windows 2019-11-14 11:18:43 +00:00
sys.c Add a naked pointers dynamic checker (#9956) 2020-10-05 14:44:31 +02:00
unix.c Remove Spacetime 2020-10-08 20:28:12 +02:00
weak.c Make Ephemeron compatible with infix pointers. 2020-07-18 08:07:35 +02:00
win32.c Remove Spacetime 2020-10-08 20:28:12 +02:00