-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make start_reading/stop_reading automatic exactly when needed. fix #1925
, fix #10655 (closes #11530) this also makes the read throttle more intelligent so that it doesn't get tripped up by wait_nb requests for more than READ_BUFFER_SZ bytes
- Loading branch information
Showing
10 changed files
with
117 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# parameters limiting potentially-infinite types | ||
This comment has been minimized.
Sorry, something went wrong. |
||
const MAX_TYPEUNION_LEN = 3 | ||
const MAX_TYPE_DEPTH = 4 | ||
const MAX_TUPLETYPE_LEN = 8 | ||
const MAX_TUPLE_DEPTH = 4 | ||
|
||
type NotFound | ||
end | ||
|
||
const NF = NotFound() | ||
|
||
type StaticVarInfo | ||
sp::SimpleVector # static parameters | ||
cenv::ObjectIdDict # types of closed vars | ||
vars::Array{Any,1} # names of args and locals | ||
gensym_types::Array{Any,1} # types of the GenSym's in this function | ||
vinfo::Array{Any,1} # variable properties | ||
label_counter::Int # index of the current highest label for this function | ||
fedbackvars::ObjectIdDict | ||
end | ||
|
||
type VarState | ||
typ | ||
undef::Bool | ||
end | ||
|
||
type EmptyCallStack | ||
end | ||
|
||
type CallStack | ||
ast | ||
mod::Module | ||
types::Type | ||
recurred::Bool | ||
cycleid::Int | ||
result | ||
prev::Union(EmptyCallStack,CallStack) | ||
sv::StaticVarInfo | ||
|
||
CallStack(ast, mod, types::ANY, prev) = new(ast, mod, types, false, 0, Bottom, prev) | ||
end | ||
|
||
inference_stack = EmptyCallStack() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function collect{T}(::Type{T}, itr) | ||
# when length() isn't defined this branch might pollute the | ||
# type of the other. | ||
a = Array(T,length(itr)::Integer) | ||
i = 0 | ||
for x in itr | ||
a[i+=1] = x | ||
end | ||
return a | ||
end | ||
Base.Inference.println(Base.Inference.code_typed(collect, Tuple{Type{Int64},Int64})) | ||
|
This file doesn't seem to be referenced anywhere.