Skip to content

Commit 6d9e874

Browse files
committed
Runtime: adjust gc prims
1 parent c8524eb commit 6d9e874

File tree

7 files changed

+6
-33
lines changed

7 files changed

+6
-33
lines changed

compiler/tests-check-prim/main.output

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ caml_fs_init
5252
jsoo_create_file
5353
jsoo_create_file_extern
5454

55-
From +gc.js:
56-
caml_memprof_set
57-
5855
From +graphics.js:
5956
caml_gr_arc_aux
6057
caml_gr_blit_image

compiler/tests-check-prim/main.output5

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ caml_fs_init
3737
jsoo_create_file
3838
jsoo_create_file_extern
3939

40-
From +gc.js:
41-
caml_eventlog_pause
42-
caml_eventlog_resume
43-
caml_gc_huge_fallback_count
44-
caml_get_major_bucket
45-
caml_get_major_credit
46-
caml_memprof_set
47-
4840
From +graphics.js:
4941
caml_gr_arc_aux
5042
caml_gr_blit_image

compiler/tests-check-prim/unix-unix.output

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ caml_fs_init
161161
jsoo_create_file
162162
jsoo_create_file_extern
163163

164-
From +gc.js:
165-
caml_memprof_set
166-
167164
From +graphics.js:
168165
caml_gr_arc_aux
169166
caml_gr_blit_image

compiler/tests-check-prim/unix-unix.output5

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,6 @@ caml_fs_init
148148
jsoo_create_file
149149
jsoo_create_file_extern
150150

151-
From +gc.js:
152-
caml_eventlog_pause
153-
caml_eventlog_resume
154-
caml_gc_huge_fallback_count
155-
caml_get_major_bucket
156-
caml_get_major_credit
157-
caml_memprof_set
158-
159151
From +graphics.js:
160152
caml_gr_arc_aux
161153
caml_gr_blit_image

compiler/tests-check-prim/unix-win32.output

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ caml_fs_init
126126
jsoo_create_file
127127
jsoo_create_file_extern
128128

129-
From +gc.js:
130-
caml_memprof_set
131-
132129
From +graphics.js:
133130
caml_gr_arc_aux
134131
caml_gr_blit_image

compiler/tests-check-prim/unix-win32.output5

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,6 @@ caml_fs_init
114114
jsoo_create_file
115115
jsoo_create_file_extern
116116

117-
From +gc.js:
118-
caml_eventlog_pause
119-
caml_eventlog_resume
120-
caml_gc_huge_fallback_count
121-
caml_get_major_bucket
122-
caml_get_major_credit
123-
caml_memprof_set
124-
125117
From +graphics.js:
126118
caml_gr_arc_aux
127119
caml_gr_blit_image

runtime/js/gc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ function caml_gc_get() {
5252
}
5353

5454
//Provides: caml_memprof_set
55+
//Version: = 4.10
5556
function caml_memprof_set(_control) {
5657
return 0;
5758
}
@@ -98,16 +99,19 @@ function caml_memprof_discard(t) {
9899
}
99100

100101
//Provides: caml_eventlog_resume
102+
//Version: < 5.0
101103
function caml_eventlog_resume(unit) {
102104
return 0;
103105
}
104106

105107
//Provides: caml_eventlog_pause
108+
//Version: < 5.0
106109
function caml_eventlog_pause(unit) {
107110
return 0;
108111
}
109112

110113
//Provides: caml_gc_huge_fallback_count
114+
//Version: < 5.0
111115
function caml_gc_huge_fallback_count(unit) {
112116
return 0;
113117
}
@@ -128,11 +132,13 @@ function caml_get_minor_free(unit) {
128132
}
129133

130134
//Provides: caml_get_major_bucket
135+
//Version: < 5.0
131136
function caml_get_major_bucket(n) {
132137
return 0;
133138
}
134139

135140
//Provides: caml_get_major_credit
141+
//Version: < 5.0
136142
function caml_get_major_credit(n) {
137143
return 0;
138144
}

0 commit comments

Comments
 (0)