-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[GR-64086] Add extended dynamic object layout. #11188
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add missing override annotations. Remove unused code. Minor code simplifications.
Adapt UnsafeAccess to package refactoring. Invert dynamic object implementation project dependency.
Adapt SVM substitutions to refactoring.
…ure. Move resetNativeImageState() to DynamicObjectFeature.
…fleRuntime methods.
Remove DynamicObject accessor used for service provider lookup.
Simplify LayoutFactory.createShape. Remove obsolete internal "since" tags. Remove unnecessary SuppressWarnings("deprecation").
830f4b9
to
76c0d49
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds extended Dynamic Object Model Layout that adds:
* A shape obsolescence strategy enabling optimistic type speculation for primitive property values with gradual migration to more general shapes on speculation failure (moving primitive slots to reference slots), eventually converging on a general enough shape tree. Reduces shape polymorphism by obsoleting and merging too specific shapes in favor of more general shapes.
* Automatic reference type tracking based on assumptions, eliminating redundant type checks.
* Automatic single-assignment tracking based on assumptions allowing languages to assume that a property is effectively final (i.e. stays unchanged after the initial assignment) as well as constant-fold values of a constant receiver with a known shape.
* You can still disable the new layout and switch back to the previous implementation using the system property:
-Dtruffle.object.LayoutFactory=com.oracle.truffle.api.object.CoreLayoutFactory
.