compiler: Migrate type representation records to native records - #11267
Open
bjorng wants to merge 5 commits into
Open
compiler: Migrate type representation records to native records#11267bjorng wants to merge 5 commits into
bjorng wants to merge 5 commits into
Conversation
Contributor
CT Test Results 5 files 545 suites 1h 59m 40s ⏱️ Results for commit 1a9c69a. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts
// Erlang/OTP Github Action Bot |
bjorng
force-pushed
the
bjorn/compiler/use-native-record-types
branch
from
August 13, 2026 09:37
63f29f5 to
08ea36a
Compare
bjorng
force-pushed
the
bjorn/compiler/use-native-record-types
branch
from
August 13, 2026 11:23
08ea36a to
d0fbcaf
Compare
bjorng
force-pushed
the
bjorn/compiler/use-native-record-types
branch
from
August 13, 2026 12:44
d0fbcaf to
a49a132
Compare
Co-authored-by: Isabell Huang <isabell@erlang.org>
Attempting to parse a Core Erlang file from a freshly started shell
would fail:
1> compile:file(t, from_core).
t.core: internal error in pass parse_core:
exception error: {badrecord,{v3_core,c_var}}
in function core_parse:yeccpars2_15/7 (core_parse.yrl:444)
in call from core_parse:yeccpars0/5 (...)
in call from compile:parse_core/2 (compile.erl:2126)
in call from compile:fold_comp/4 (compile.erl:1352)
in call from compile:internal_comp/5 (compile.erl:1327)
in call from compile:'-internal_fun/2-anonymous-0-'/2 (compile.erl:1153)
in call from compile:'-do_compile/2-anonymous-0-'/1 (compile.erl:1143)
error
The reason is that creating native records belonging to the `v3_core`
module is only possible when `v3_core` has been loaded. Therefore,
we'll need ensure `v3_core` is loaded before starting the parsing.
As a workaround for some issues with native records, the major SSA optimizations were disabled for `beam_ssa_type`. This workaround is no longer needed.
bjorng
force-pushed
the
bjorn/compiler/use-native-record-types
branch
from
August 14, 2026 05:21
a49a132 to
1a9c69a
Compare
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
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.
No description provided.