Skip to content

Commit 5c3c038

Browse files
committed
temporarily disable inference and parts of sysimg
1 parent 9e8af64 commit 5c3c038

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

base/array.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ function _collect(cont, itr, ::HasEltype, isz::SizeUnknown)
323323
return a
324324
end
325325

326-
if isdefined(Core, :Inference)
326+
if false && isdefined(Core, :Inference)
327327
_default_eltype(itrt::ANY) = Core.Inference.return_type(first, Tuple{itrt})
328328
else
329329
_default_eltype(itr::ANY) = Any

base/inference.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -3871,8 +3871,8 @@ end
38713871
# this ensures that typeinf_ext doesn't recurse before it can add the item to the workq
38723872

38733873
for m in _methods_by_ftype(Tuple{typeof(typeinf_loop), Vararg{Any}}, 10)
3874-
typeinf(m[3], m[1], m[2], true)
3874+
# typeinf(m[3], m[1], m[2], true)
38753875
end
38763876
for m in _methods_by_ftype(Tuple{typeof(typeinf_edge), Vararg{Any}}, 10)
3877-
typeinf(m[3], m[1], m[2], true)
3877+
# typeinf(m[3], m[1], m[2], true)
38783878
end

base/promotion.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ minmax(x::Real, y::Real) = minmax(promote(x, y)...)
222222

223223
# "Promotion" that takes a function into account. These are meant to be
224224
# used mainly by broadcast methods, so it is advised against overriding them
225-
if isdefined(Core, :Inference)
225+
if false && isdefined(Core, :Inference)
226226
function _promote_op(op, T::ANY)
227227
G = Tuple{Generator{Tuple{T},typeof(op)}}
228228
return Core.Inference.return_type(first, G)

base/sysimg.jl

+21-21
Original file line numberDiff line numberDiff line change
@@ -310,56 +310,56 @@ include("statistics.jl")
310310
include("irrationals.jl")
311311

312312
# signal processing
313-
include("dft.jl")
314-
importall .DFT
315-
include("dsp.jl")
316-
importall .DSP
313+
#include("dft.jl")
314+
#importall .DFT
315+
#include("dsp.jl")
316+
#importall .DSP
317317

318318
# Numerical integration
319-
include("quadgk.jl")
320-
importall .QuadGK
319+
#include("quadgk.jl")
320+
#importall .QuadGK
321321

322322
# Fast math
323-
include("fastmath.jl")
324-
importall .FastMath
323+
#include("fastmath.jl")
324+
#importall .FastMath
325325

326326
# libgit2 support
327-
include("libgit2/libgit2.jl")
327+
#include("libgit2/libgit2.jl")
328328

329329
# package manager
330-
include("pkg/pkg.jl")
330+
#include("pkg/pkg.jl")
331331

332332
# Stack frames and traces
333333
include("stacktraces.jl")
334334
importall .StackTraces
335335

336336
# profiler
337-
include("profile.jl")
338-
importall .Profile
337+
#include("profile.jl")
338+
#importall .Profile
339339

340340
# dates
341-
include("dates/Dates.jl")
342-
import .Dates: Date, DateTime, now
341+
#include("dates/Dates.jl")
342+
#import .Dates: Date, DateTime, now
343343

344344
# sparse matrices, vectors, and sparse linear algebra
345-
include("sparse/sparse.jl")
346-
importall .SparseArrays
345+
#include("sparse/sparse.jl")
346+
#importall .SparseArrays
347347

348348
# worker threads
349349
include("threadcall.jl")
350350

351351
# deprecated functions
352-
include("deprecated.jl")
352+
#include("deprecated.jl")
353353

354354
# Some basic documentation
355-
include("docs/helpdb.jl")
356-
include("docs/basedocs.jl")
355+
#include("docs/helpdb.jl")
356+
#include("docs/basedocs.jl")
357357

358358
# Documentation -- should always be included last in sysimg.
359359
include("markdown/Markdown.jl")
360360
include("docs/Docs.jl")
361361
using .Docs, .Markdown
362-
isdefined(Core, :Inference) && Docs.loaddocs(Core.Inference.CoreDocs.DOCS)
362+
#isdefined(Core, :Inference) && Docs.loaddocs(Core.Inference.CoreDocs.DOCS)
363363

364364
function __init__()
365365
# Base library init
@@ -372,7 +372,7 @@ function __init__()
372372
end
373373

374374
include = include_from_node1
375-
include("precompile.jl")
375+
#include("precompile.jl")
376376

377377
end # baremodule Base
378378

src/gf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void jl_mk_builtin_func(jl_datatype_t *dt, const char *name, jl_fptr_t fptr)
189189
jl_lambda_info_t *jl_type_infer(jl_lambda_info_t *li, int force)
190190
{
191191
JL_TIMING(INFERENCE);
192-
#ifdef ENABLE_INFERENCE
192+
#if 0 //def ENABLE_INFERENCE
193193
JL_LOCK(&codegen_lock); // use codegen lock to synchronize type-inference
194194
jl_module_t *mod = NULL;
195195
if (li->def != NULL)

0 commit comments

Comments
 (0)