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

Profile.Allocs: Add task and timestamp (take 2) #44162

Merged
merged 2 commits into from
Feb 14, 2022

Conversation

jpsamaroo
Copy link
Member

See #44055 for details and discussion

@jpsamaroo
Copy link
Member Author

@DilumAluthge analyzegc is now passing, and the cycleclock commit is otherwise NFC.

@vtjnash vtjnash added the status:merge me PR is reviewed. Merge when all tests are passing label Feb 13, 2022
@vchuravy vchuravy merged commit 3cfe5ca into JuliaLang:master Feb 14, 2022
@DilumAluthge DilumAluthge removed the status:merge me PR is reviewed. Merge when all tests are passing label Feb 14, 2022
@jpsamaroo jpsamaroo deleted the jps/alloc-ns-ct branch February 14, 2022 12:33
Comment on lines +23 to +24
jl_task_t *task;
uint64_t timestamp;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nit-picking, but I would appreciate if you either stored the task as a void*, or even a size_t, and/or added a comment here indicating that this pointer is not rooted, and therefore might not even be live anymore, and you should never try to load it.

Can you send a tiny follow up to address this? :) Thanks!

I also like matching the julia and C structs as much as possible, so void* in both or size_t in both makes sense to me.

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

Successfully merging this pull request may close these issues.

None yet

5 participants