Skip to content

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

Merged
vchuravy merged 2 commits into
JuliaLang:masterfrom
jpsamaroo:jps/alloc-ns-ct
Feb 14, 2022
Merged

Profile.Allocs: Add task and timestamp (take 2)#44162
vchuravy merged 2 commits into
JuliaLang:masterfrom
jpsamaroo:jps/alloc-ns-ct

Conversation

@jpsamaroo

Copy link
Copy Markdown
Member

See #44055 for details and discussion

@jpsamaroo

Copy link
Copy Markdown
Member Author

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

@vtjnash vtjnash added the 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 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 thread src/gc-alloc-profiler.cpp
Comment on lines +23 to +24
jl_task_t *task;
uint64_t timestamp;

Copy link
Copy Markdown
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.

5 participants