Commit Graph

171 Commits (5ad64306d36755b600f2556805effb73627508c8)

Author SHA1 Message Date
David Allsopp a7b5bb6f06 Propagate Caml_state_field 2019-08-24 12:15:49 +02:00
KC Sivaramakrishnan ad96dec89c Use domain state field names that do not conflict with compatibility.h
The domain state structure (caml_domain_state) uses certaing field names
(young_start, young_limit, etc.) that conflict with the macro
definitions in compatibility.h that use the same names. These macro
definitions are made only when CAML_NAME_SPACE is not defined. To avoid
conflict, when CAML_NAME_SPACE is not defined, we prefix the field names
in caml_domain_state with an underscore.

Update .depend files.
2019-08-23 09:59:53 +05:30
KC Sivaramakrishnan 05d5bf0251 Fixes for conflicting definitions in compatibility.h 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 6efd278286 Remove a level of indirection for accessing minor tables from Caml_state. 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 0d19da48d4 Make depend. Fix reference to ref table. 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan e96220a96f Simplify awk scripts, fix comments and signatures. 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 29b53b1fad Fix ENDFUNCTION macros args for callbacks 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 525a1cec7b Revert changes to compatibility.h 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 8721dc4e89 Remove inclusion of config.h from the files that generate domain state table. 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 2a0e607851 Fix copyright headers again 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan b353f2a1c1 Fix copytight header in awk files 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 316a5ff358 Copyright headers and attribution 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 8ab825d7e9 Fix makefile, gitignore and a stray extern declaration 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 9927db73b4 Add missing awk file 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan d227d36304 Domain state support for msvc32 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan a27d53f379 Add copyright header to gen_domain_state_inc.awk 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan c674a9a443 Domain state support for msvc64 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan a395c4cf71 Fix CFI offsets in amd64 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan b22240f53c Fix CAML_STATIC_ASSERT for MSVC 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 1aec112619 Define alignment macro for MSVC compiler 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan eac4860ad3 Intialise domains earlier 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 64d0501c5c Fix references to removed variables 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 126383b2b2 Fix long lines 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 8d49d48767 Domain state support for s390x 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 750fd7a795 Support for domain state on arm 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan fdd4d73b43 Domain state support for i386 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 4dab86ad54 Fix domain state field offset for power (32-bit)
The domain state fields are always aligned at 8 byte offset. This is to
ensure that even on a 32-bit where pointers are 32-bits and doubles are
64-bits, the offset calculation remains the same as 64-bit
architectures.
2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan d6c350a1c9 Add domain_state.tbl to install targets 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan f7920a127f Domain state works on Power64 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 0d90d474ca Restore exception pointer macros in signals_osdeps.h 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 7841b4e30b Support for domain state on arm64 architecture 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan de5ef602fd Rename exn_handler to exception_pointer 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan cededf23b9 Move local_roots, compare unorderd and gc request variables to domain state 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 3357490de0 Move native runtime globals used for roots to domain state 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 111f6af469 Move bytecode global variables to domain state 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan c06038a0ee Move backtrace support global variables to domain state.
Since we cannot access backtrace position in cmmgen.ml anymore,
Cmm.raise_kind in removed. Instead, we use Lambda.raise_kind. When
assembly code is generated, we reset the backtrace position to 0 in the
case of regular raise. Importantly, the semantics remains the same.
2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 755f5444f1 Move all statistics variables to domain state 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 28c5b9c860 Various minor heap pointers moved to domain state 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 765d475f51 macOS support 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan b212aed0cb Make depend and fix typos 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 8e8b34d1db Reorder domain state fields 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan 45b1e18f59 young_ptr and young_limit are now in domain state 2019-08-23 09:50:05 +05:30
KC Sivaramakrishnan fc6f028492 Introduce domain state and steal exception pointer 2019-08-23 09:50:05 +05:30
Stephen Dolan 5e4b55d3bd Use the autoconf- or system-provided off_t rather than redetecting. (#8843)
Fixes: #8841
2019-07-31 13:56:26 +02:00
Tom Kelly 4cd8dd25ca Fix stack probe CFI information for amd64 and i386 (#8848)
Add CFI information for the stack probes for amd64 and i386 when doing caml_c_call and caml_call_gc.
2019-07-31 11:51:37 +02:00
Xavier Leroy 7ffa7d26c8 misc.h: include <stdarg.h> so that va_list is defined
Follow-up to PR#8630, commit cddec18fd.
2019-07-31 11:36:21 +02:00
Xavier Leroy 9d84841c46
Merge branch 'trunk' into fatal_error_abort 2019-07-31 11:18:57 +02:00
David Allsopp b6869ee66c Only define -DOCAML_STDLIB_DIR when needed 2019-07-19 16:45:50 +01:00
David Allsopp 777cfef8ca Make dynlink_*.o depend on Makefile.config
dynlink.c uses OCAML_STDLIB_DIR, which is derived from Makefile.config.
This makes that dependency explicit, so re-configuring will trigger a
rebuild of dynlink_*.o
2019-07-19 16:44:59 +01:00
Gabriel Scherer 2f5a3b41c3
Merge pull request #8654 from jhjourdan/debugger_dynlink
Dynlink support for ocamldebug
2019-07-17 14:30:55 +02:00