Skip to content

Replace 'is_major' with 'source', which might be Minor, Major or External#8

Merged
lukemaurer merged 2 commits into
masterfrom
expose-external
Dec 8, 2020
Merged

Replace 'is_major' with 'source', which might be Minor, Major or External#8
lukemaurer merged 2 commits into
masterfrom
expose-external

Conversation

@stedolan
Copy link
Copy Markdown
Collaborator

@stedolan stedolan commented Dec 2, 2020

This is a followup to #5, which introduced the support for external allocations. This patch marks external allocations as such in the memtrace files, so that the viewer can distinguish them.

The codes for minor / major / external are chosen to be compatible with the old is_major field, so the format of traces that don't include external allocs doesn't change.

Comment thread src/trace.ml Outdated
| 0 -> Minor
| 1 -> Major
| 2 -> External
| _ -> bad_format "is_major" in
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this now say bad_format "source"?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

@lukemaurer lukemaurer merged commit b7af209 into master Dec 8, 2020
tmcgilchrist pushed a commit to tmcgilchrist/memtrace that referenced this pull request May 21, 2025
Add brief section on the Go garbage collector.
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.

2 participants