File tree Expand file tree Collapse file tree 5 files changed +383
-265
lines changed Expand file tree Collapse file tree 5 files changed +383
-265
lines changed Original file line number Diff line number Diff line change @@ -932,7 +932,7 @@ let emit_instr env fallthrough i =
932
932
I.movzx (res8 i 0) (res i 0)
933
933
| Lop (Idls_get) ->
934
934
if Config.runtime5
935
- then I.mov (domain_field Domainstate.Domain_dls_root) (res i 0)
935
+ then I.mov (domain_field Domainstate.Domain_dls_root) (res i 0)
936
936
else Misc.fatal_error "Idls_get not implemented in runtime4."
937
937
| Lreloadretaddr ->
938
938
()
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ let for_primitive (prim : Clambda_primitives.primitive) =
160
160
| Pget_header _ -> No_effects , No_coeffects
161
161
| Pdls_get ->
162
162
(* only read *)
163
- No_effects , No_coeffects
163
+ No_effects , Has_coeffects
164
164
165
165
type return_type =
166
166
| Float
Original file line number Diff line number Diff line change @@ -175,3 +175,40 @@ CAMLprim value caml_ml_condition_broadcast(value wrapper)
175
175
176
176
return (* caml_hook_condition_broadcast )(wrapper );
177
177
}
178
+
179
+ /* Dummy implementations to enable [Stdlib.Domain] to link. */
180
+
181
+ CAMLprim value caml_recommended_domain_count (void )
182
+ {
183
+ caml_failwith ("Domains not supported on runtime4" );
184
+ }
185
+
186
+ CAMLprim value caml_ml_domain_cpu_relax (void )
187
+ {
188
+ caml_failwith ("Domains not supported on runtime4" );
189
+ }
190
+
191
+ CAMLprim value caml_init_domain_self (void )
192
+ {
193
+ caml_failwith ("Domains not supported on runtime4" );
194
+ }
195
+
196
+ CAMLprim value caml_domain_spawn (void )
197
+ {
198
+ caml_failwith ("Domains not supported on runtime4" );
199
+ }
200
+
201
+ CAMLprim value caml_ml_domain_id (void )
202
+ {
203
+ caml_failwith ("Domains not supported on runtime4" );
204
+ }
205
+
206
+ CAMLprim value caml_domain_dls_set (void )
207
+ {
208
+ caml_failwith ("Domains not supported on runtime4" );
209
+ }
210
+
211
+ CAMLprim value caml_domain_dls_get (void )
212
+ {
213
+ caml_failwith ("Domains not supported on runtime4" );
214
+ }
You can’t perform that action at this time.
0 commit comments