Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oscardssmith
Copy link
Member

This will make Revise tracking of Core.Compiler more accurate (timholy/Revise.jl#714). Taking advantage of this will also require a change to Revise.

include(x) = include(Compiler, x)
function include(mod, path)
if mod === Compiler
ccall(:jl_array_grow_end, Cvoid, (Any, UInt), _included_files, UInt(1))
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

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 :)

Copy link
Member

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.

Copy link
Member

@timholy timholy left a 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))
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants