This repository was archived by the owner on Mar 12, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ function pool_alloc(bytes, pid=-1)
201
201
end
202
202
203
203
@pool_timeit " 2. gc (incremental)" begin
204
- GC. gc (VERSION >= v " 1.4.0-DEV.257 " ? GC . Incremental : false )
204
+ GC. gc (false )
205
205
end
206
206
207
207
if pid != - 1 && ! isempty (pools_avail[pid])
@@ -222,7 +222,7 @@ function pool_alloc(bytes, pid=-1)
222
222
end
223
223
224
224
@pool_timeit " 5. gc (full)" begin
225
- GC. gc (VERSION >= v " 1.4.0-DEV.257 " ? GC . Full : true )
225
+ GC. gc (true )
226
226
end
227
227
228
228
if pid != - 1 && ! isempty (pools_avail[pid])
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ function alloc(sz)
14
14
ptr = nothing
15
15
for phase in 1 : 3
16
16
if phase == 2
17
- @pool_timeit " $phase .0 gc (incremental)" GC. gc (VERSION >= v " 1.4.0-DEV.257 " ? GC . Incremental : false )
17
+ @pool_timeit " $phase .0 gc (incremental)" GC. gc (false )
18
18
elseif phase == 3
19
- @pool_timeit " $phase .0 gc (full)" GC. gc (VERSION >= v " 1.4.0-DEV.257 " ? GC . Full : true )
19
+ @pool_timeit " $phase .0 gc (full)" GC. gc (true )
20
20
end
21
21
22
22
@pool_timeit " $phase .1 alloc" begin
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ function pool_alloc(sz)
74
74
block = nothing
75
75
for phase in 1 : 3
76
76
if phase == 2
77
- @pool_timeit " $phase .0 gc (incremental)" GC. gc (VERSION >= v " 1.4.0-DEV.257 " ? GC . Incremental : false )
77
+ @pool_timeit " $phase .0 gc (incremental)" GC. gc (false )
78
78
elseif phase == 3
79
- @pool_timeit " $phase .0 gc (full)" GC. gc (VERSION >= v " 1.4.0-DEV.257 " ? GC . Full : true )
79
+ @pool_timeit " $phase .0 gc (full)" GC. gc (true )
80
80
end
81
81
82
82
@pool_timeit " $phase .1 scan" begin
Original file line number Diff line number Diff line change @@ -328,9 +328,9 @@ function pool_alloc(sz)
328
328
block = nothing
329
329
for phase in 1 : 3
330
330
if phase == 2
331
- @pool_timeit " $phase .0 gc (incremental)" GC. gc (VERSION >= v " 1.4.0-DEV.257 " ? GC . Incremental : false )
331
+ @pool_timeit " $phase .0 gc (incremental)" GC. gc (false )
332
332
elseif phase == 3
333
- @pool_timeit " $phase .0 gc (full)" GC. gc (VERSION >= v " 1.4.0-DEV.257 " ? GC . Full : true )
333
+ @pool_timeit " $phase .0 gc (full)" GC. gc (true )
334
334
end
335
335
336
336
if ! isempty (freed)
You can’t perform that action at this time.
0 commit comments