-
Notifications
You must be signed in to change notification settings - Fork 19
jit: trace a nested _getframe chain through its virtualref pairs #1401
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
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b6789d8
majit: preserve pending ops on invalid loops
youknowone 4f51d57
jit: trace nested getframe virtualrefs
youknowone 631054e
jit: write the portal locals region back when folding f_locals
youknowone 96d812a
jit: decline the getframe chain census on a hidden frame
youknowone ab9e04a
jit: key an unplaced field descriptor by offset, and write the whole …
youknowone d61a9dd
jit: read a virtualref pair's address back through its box stamp
youknowone e208ddd
majit: ask field_slot_index for the PtrInfo slot in three heap tests
youknowone 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
9 changes: 5 additions & 4 deletions
9
pyre/bench/synth/getframe_bridge_force_after_store_declined.cranelift.jitstats
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 |
|---|---|---|
| @@ -1,14 +1,15 @@ | ||
| bridges_compiled=0 | ||
| bridges_compiled=1 | ||
| descr_set_absent=0 | ||
| descr_set_ambiguous=0 | ||
| descr_set_stale_absent=0 | ||
| fbw_blackhole_adopted_multi_frame=0 | ||
| fbw_blackhole_adopted_single_frame=20 | ||
| fbw_blackhole_adopted_single_frame=0 | ||
| fbw_rolled_back_with_effects=0 | ||
| fbw_store_journal_rollback_failed=0 | ||
| field_pos_attached_misplaced=0 | ||
| field_pos_spec_misplaced=0 | ||
| guard_failures=4114 | ||
| guard_failures=201 | ||
| internal_compile_panics=0 | ||
| loops_aborted=20 | ||
| loops_aborted=0 | ||
| loops_compiled=1 | ||
| retraces_compiled=0 |
9 changes: 5 additions & 4 deletions
9
pyre/bench/synth/getframe_bridge_force_after_store_declined.dynasm.jitstats
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 |
|---|---|---|
| @@ -1,14 +1,15 @@ | ||
| bridges_compiled=0 | ||
| bridges_compiled=1 | ||
| descr_set_absent=0 | ||
| descr_set_ambiguous=0 | ||
| descr_set_stale_absent=0 | ||
| fbw_blackhole_adopted_multi_frame=0 | ||
| fbw_blackhole_adopted_single_frame=20 | ||
| fbw_blackhole_adopted_single_frame=0 | ||
| fbw_rolled_back_with_effects=0 | ||
| fbw_store_journal_rollback_failed=0 | ||
| field_pos_attached_misplaced=0 | ||
| field_pos_spec_misplaced=0 | ||
| guard_failures=4114 | ||
| guard_failures=201 | ||
| internal_compile_panics=0 | ||
| loops_aborted=20 | ||
| loops_aborted=0 | ||
| loops_compiled=1 | ||
| retraces_compiled=0 |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a minor GC runs after
opimpl_virtual_refrecords the pair, the frame can move whilepair[0].1remains the address captured when the pair was pushed; this same module explicitly documents that behavior inopimpl_virtual_ref_finish. For an already-stopped vref,try_walker_specialize_sys_getframerelies exclusively on this new lookup, so comparing the currentvref_forcedreferent against the stale sidecar fails and declines the positive-depth specialization, restoring the residual force/trace abort that this change is intended to eliminate. Resolve each pair's current concrete identity through its redOpRef/concrete_of_oprefstamp instead.AGENTS.md reference: AGENTS.md:L26-L33
Useful? React with 👍 / 👎.