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

Adapt VMInvokable hierarchy to not be VMObjects #29

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

smarr
Copy link
Member

@smarr smarr commented Jul 24, 2024

Since SOM changed and does not expose all the details it used to, we do not need to keep the various fields as SOM-level values.
This drastically simplifies things and avoids GC issues.
With the copying and generational GC, we do have to be very careful around cloning objects and walking objects that were already moved.
However, if we use VMIntegers to represent crucial info, that's rather hairy.
So, we just don't do that any longer.

smarr added 2 commits July 24, 2024 01:21
- turn fields into proper integers to allow safe access in GC-critical methods
- turn setters into arguments to constructor

Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
@smarr
Copy link
Member Author

smarr commented Jul 24, 2024

It also gives a neat little performance gain: median -5% (min. -38%, max. 6%)
https://rebench.dev/SOMpp/compare/faad0f5e60921115f3c20a32cd49b0f56afd7153..ebc9e59d15f04078f94ffdee586850f6129a7500

@smarr smarr merged commit ed23dbb into SOM-st:master Jul 24, 2024
19 checks passed
@smarr smarr deleted the simplify-objects branch July 24, 2024 10:54
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.

1 participant