-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8305895: Implement JEP 450: Compact Object Headers (Experimental) #20640
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
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
86239af
8305898: Alternative self-forwarding mechanism
rkennke b6eafc7
8305896O Alternative full GC forwarding
rkennke 03eaf4e
8305894: Implementation: JEP 450: Compact Object Headers (Experimental)
rkennke 789cb19
Improve asserts
rkennke 97c3eb7
Export new hash constants to JVMCI
rkennke f4c499f
Explicitely make AVAILABLE=true
rkennke 6579251
Reviews
rkennke 6f62500
Merge branch 'JDK-8305896-v2' into JDK-8305895-v3
rkennke 932ee69
Initialize flags in GC specific paths
rkennke 525a8ef
Merge branch 'JDK-8305896-v2' into JDK-8305895-v3
rkennke ba54b2d
Remove special handling of non-self-fwded objects
rkennke d5f735f
Merge branch 'JDK-8305898-v4' into JDK-8305896-v2
rkennke 2ead7a5
Merge branch 'JDK-8305896-v2' into JDK-8305895-v3
rkennke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2557,3 +2557,22 @@ bool C2_MacroAssembler::in_scratch_emit_size() { | |
| } | ||
| return MacroAssembler::in_scratch_emit_size(); | ||
| } | ||
|
|
||
| void C2_MacroAssembler::load_nklass_compact(Register dst, Register obj, Register index, int scale, int disp) { | ||
| // Note: Don't clobber obj anywhere in that method! | ||
|
|
||
| // The incoming address is pointing into obj-start + klass_offset_in_bytes. We need to extract | ||
| // obj-start, so that we can load from the object's mark-word instead. Usually the address | ||
| // comes as obj-start in obj and klass_offset_in_bytes in disp. However, sometimes C2 | ||
| // emits code that pre-computes obj-start + klass_offset_in_bytes into a register, and | ||
| // then passes that register as obj and 0 in disp. The following code extracts the base | ||
| // and offset to load the mark-word. | ||
| int offset = oopDesc::mark_offset_in_bytes() + disp - oopDesc::klass_offset_in_bytes(); | ||
| if (index == noreg) { | ||
| ldr(dst, Address(obj, offset)); | ||
| } else { | ||
| lea(dst, Address(obj, index, Address::lsl(scale))); | ||
| ldr(dst, Address(dst, offset)); | ||
|
Comment on lines
+2574
to
+2575
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It ignores the offset, right? Or are you saying that offset must be 0 on that path?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, brain fart. |
||
| } | ||
| lsr(dst, dst, markWord::klass_shift); | ||
| } | ||
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.