-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
track files included by Core.Compiler #47740
base: master
Are you sure you want to change the base?
track files included by Core.Compiler #47740
Conversation
include(x) = include(Compiler, x) | ||
function include(mod, path) | ||
if mod === Compiler | ||
ccall(:jl_array_grow_end, Cvoid, (Any, UInt), _included_files, UInt(1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use a comment about what this is doing and why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just a push!
before push!
is defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that. But I'm sayin' for others :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that a comment would be nice. Base.jl
should have had one for the same code too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
include(x) = include(Compiler, x) | ||
function include(mod, path) | ||
if mod === Compiler | ||
ccall(:jl_array_grow_end, Cvoid, (Any, UInt), _included_files, UInt(1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that a comment would be nice. Base.jl
should have had one for the same code too.
This will make
Revise
tracking ofCore.Compiler
more accurate (timholy/Revise.jl#714). Taking advantage of this will also require a change to Revise.