File tree Expand file tree Collapse file tree 17 files changed +25
-25
lines changed Expand file tree Collapse file tree 17 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -610,7 +610,7 @@ external re_search_backward: regexp -> string -> int -> int array
610
610
module Domain = struct
611
611
module DLS = struct
612
612
613
- (* CR ocaml 5 runtime : Remove this proxy and use the real Domain.DLS *)
613
+ (* CR ocaml 5 domains : Remove this proxy and use the real Domain.DLS *)
614
614
let [@ inline always] new_key f = ref (f () )
615
615
let [@ inline always] set k s = k := s
616
616
let [@ inline always] get k = ! k
Original file line number Diff line number Diff line change 13
13
/* */
14
14
/**************************************************************************/
15
15
16
- // CR ocaml 5 runtime: We will need to pull in changes from the same file in
17
- // [tip-5] tag in ocaml-jst. We're considering this file to be part of the
18
- // runtime.
19
-
20
16
#define CAML_INTERNALS
21
17
22
18
#define CAML_NAME_SPACE
Original file line number Diff line number Diff line change 13
13
/* */
14
14
/**************************************************************************/
15
15
16
- /* CR ocaml 5 runtime : This file is the 4.x version together with
16
+ /* CR ocaml 5 domains : This file is the 4.x version together with
17
17
adjustments to the names of exported functions ("unix_" -> "caml_unix").
18
- (mshinwell/xclerc)
18
+ (mshinwell/xclerc).
19
+ For multi-domain support we'll need to revisit this.
19
20
*/
20
21
21
22
#define CAML_INTERNALS
Original file line number Diff line number Diff line change 59
59
#ifdef TARGET_arm64
60
60
/* Size of the gc_regs structure, in words.
61
61
See arm64.S and arm64/proc.ml for the indices */
62
- /* CR ocaml 5 runtime ( mshinwell): this has not been updated for SIMD */
62
+ /* CR-someday mshinwell: update for SIMD */
63
63
#define Wosize_gc_regs (2 + 24 /* int regs */ + 24 /* float regs */ )
64
64
#define Saved_return_address (sp ) *((intnat *)((sp) - 8))
65
65
#define Pop_frame_pointer (sp ) sp += sizeof(value)
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ void caml_free_shared_libs(void)
236
236
#define Handle_val (v ) (*((void **) (v)))
237
237
238
238
/* The mode argument is here for compatibility with runtime4. */
239
- /* CR ocaml 5 runtime : Remove [mode] when all-runtime5. */
239
+ /* CR ocaml 5 all-runtime5 : Remove [mode] when all-runtime5. */
240
240
CAMLprim value caml_dynlink_open_lib (value mode , value filename )
241
241
{
242
242
void * handle ;
Original file line number Diff line number Diff line change @@ -1380,7 +1380,7 @@ enum reachable_words_node_state {
1380
1380
* root that we reached it from */
1381
1381
};
1382
1382
1383
- /* CR ocaml 5 runtime (mshinwell): think about what to do here */
1383
+ /* CR ocaml 5 domains (mshinwell): think about what to do here */
1384
1384
/* Not multicore-safe (the [volatile] just lets us use this with the [Field] macro) */
1385
1385
static void add_to_long_value (volatile value * v , intnat x ) {
1386
1386
* v = Val_long (Long_val (* v ) + x );
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ using std::memory_order_seq_cst;
43
43
#include < stdatomic.h>
44
44
#define ATOMIC_UINTNAT_INIT (x ) (x)
45
45
46
- // CR ocaml 5 runtime : provide these typedefs (requires C11)
46
+ // CR ocaml 5 domains : provide these typedefs (requires C11)
47
47
// typedef _Atomic uintnat atomic_uintnat;
48
48
// typedef _Atomic intnat atomic_intnat;
49
49
Original file line number Diff line number Diff line change @@ -21,8 +21,10 @@ open! Stdlib
21
21
22
22
[@@@ ocaml.flambda_o3]
23
23
24
- (* CR ocaml 5 runtime: domain-local-storage assumes single-domain,
25
- i.e. calling split will never be necessary. *)
24
+ (* CR ocaml 5 domains: domain-local-storage assumes single-domain,
25
+ i.e. calling split will never be necessary.
26
+ For multi-domain support we'll need the upstream 5.x implementation.
27
+ *)
26
28
27
29
module DLS = struct
28
30
@@ -107,7 +109,7 @@ let do_at_exit () =
107
109
108
110
let _ = Stdlib. do_domain_local_at_exit := do_at_exit
109
111
110
- (* CR ocaml 5 runtime: domains not supported on 4.x
112
+ (* CR ocaml 5 domains: use this code
111
113
112
114
module Raw = struct
113
115
(* Low-level primitives provided by the runtime *)
Original file line number Diff line number Diff line change 17
17
(* *)
18
18
(* *************************************************************************)
19
19
20
- (* CR ocaml 5 runtime : domains not supported on 4.x
20
+ (* CR ocaml 5 domains : domains not supported on 4.x
21
21
22
22
[@@@alert unstable
23
23
"The Domain interface may change in incompatible ways in the future."
Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ external full_major : unit -> unit = "caml_gc_full_major"
67
67
external compact : unit -> unit = " caml_gc_compaction"
68
68
external get_minor_free : unit -> int = " caml_get_minor_free"
69
69
70
- (* CR ocaml 5 runtime : These functions are no-ops upstream. We should make them
71
- no-ops internally when we delete the corresponding C functions from the
72
- runtime -- they're already marked as deprecated in the mli.
70
+ (* CR ocaml 5 all-runtime5 : These functions are no-ops upstream. We should
71
+ make them no-ops internally when we delete the corresponding C functions
72
+ from the runtime -- they're already marked as deprecated in the mli.
73
73
*)
74
74
75
75
external eventlog_pause : unit -> unit = " caml_eventlog_pause"
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ type stat =
100
100
value will always be [0].
101
101
102
102
@since 3.12 *)
103
- (* CR ocaml 5 runtime : Update the above comment to what it is upstream:
103
+ (* CR ocaml 5 all-runtime5 : Update the above comment to what it is upstream:
104
104
105
105
This metrics is currently not available in OCaml 5: the field value is
106
106
always [0].
Original file line number Diff line number Diff line change @@ -70,4 +70,5 @@ val protect : t -> (unit -> 'a) -> 'a
70
70
71
71
@since 5.1 *)
72
72
(* CR ocaml 5 runtime (mshinwell): looks like [protect] needs to use
73
- Sys.with_async_exns? *)
73
+ Sys.with_async_exns?
74
+ (PR2007 fixes this) *)
Original file line number Diff line number Diff line change @@ -608,7 +608,7 @@ module Complex = Complex
608
608
module Condition = Condition
609
609
module Digest = Digest
610
610
module Domain = Domain
611
- (* CR ocaml 5 runtime :
611
+ (* CR ocaml 5 effects :
612
612
BACKPORT
613
613
module Effect = Effect
614
614
*)
Original file line number Diff line number Diff line change @@ -1410,7 +1410,7 @@ module Domain = Domain
1410
1410
[@@ alert unstable
1411
1411
" The Domain interface may change in incompatible ways in the future."
1412
1412
]
1413
- (* CR ocaml 5 runtime :
1413
+ (* CR ocaml 5 effects :
1414
1414
BACKPORT
1415
1415
module Effect = Effect
1416
1416
[@@alert "-unstable"]
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ let _ =
76
76
* to simplify this test along the same
77
77
* lines as upstream, as stack overflow
78
78
* detection is always supported in
79
- * ocaml 5. *)
79
+ * ocaml 5. *)
80
80
if (Gc. get () ).Gc. stack_limit = 0 then begin
81
81
(* We are in native code. Skip the test because some platforms cannot
82
82
reliably detect stack overflow. *)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ include systhreads
6
6
*** native
7
7
*)
8
8
9
- (* CR ocaml 5 runtime : Once statmemprof is ported, remove "runtime4" stanzas
9
+ (* CR ocaml 5 statmemprof : Once statmemprof is ported, remove "runtime4" stanzas
10
10
for the tests/statmemprof/ tests. *)
11
11
12
12
let _ =
Original file line number Diff line number Diff line change 47
47
48
48
let caml_symbol_prefix = " caml"
49
49
50
- (* CR ocaml 5 runtime : Remove this_is_ocamlc and force_runtime4_symbols once
50
+ (* CR ocaml 5 all-runtime5 : Remove this_is_ocamlc and force_runtime4_symbols once
51
51
fully on runtime5 *)
52
52
let this_is_ocamlc = ref false
53
53
let force_runtime4_symbols = ref false
You can’t perform that action at this time.
0 commit comments