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

Stop using Julia's size classes when using MMTk #108

Merged
merged 9 commits into from
Feb 27, 2024

Conversation

udesou
Copy link
Contributor

@udesou udesou commented Oct 5, 2023

When allocating an object, we are still allocating the number of bytes according to Julia's size classes, which may be an overestimation of the number of bytes an object actually requires. This PR removes this since this is specific to Julia's stock GC. This affects not only allocation itself but needs to be reflected in the get_current_size function.

Needs to be merged with mmtk/julia#31.

@udesou udesou marked this pull request as ready for review October 5, 2023 09:22
@udesou udesou requested a review from qinsoon October 5, 2023 09:22
Copy link
Member

@qinsoon qinsoon left a comment

Choose a reason for hiding this comment

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

LGTM. Check the comments in the julia PR about the 16 bytes alignment.

@udesou udesou added the backport-v1.9.2+RAI Backport the change to the branch v1.9.2+RAI label Feb 27, 2024
@udesou udesou merged commit efb9e10 into mmtk:master Feb 27, 2024
17 checks passed
mergify bot pushed a commit that referenced this pull request Feb 27, 2024
When allocating an object, we are still allocating the number of bytes
according to Julia's size classes, which may be an overestimation of the
number of bytes an object actually requires. This PR removes this since
this is specific to Julia's stock GC. This affects not only allocation
itself but needs to be reflected in the `get_current_size` function.

Needs to be merged with mmtk/julia#31.

(cherry picked from commit efb9e10)

# Conflicts:
#	mmtk/Cargo.toml
udesou added a commit that referenced this pull request Feb 28, 2024
This is an automatic backport of pull request #108 done by
[Mergify](https://mergify.com).
Cherry-pick of efb9e10 has failed:
```
On branch mergify/bp/v1.9.2+RAI/pr-108
Your branch is up to date with 'origin/v1.9.2+RAI'.

You are currently cherry-picking commit efb9e10.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   julia/mmtk_julia.c
	modified:   mmtk/src/object_model.rs

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   mmtk/Cargo.toml

```


To fix up this pull request, you can check it out locally. See
documentation:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the
[documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on
`<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you
can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

---------

Co-authored-by: Eduardo Souza <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v1.9.2+RAI Backport the change to the branch v1.9.2+RAI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants