Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Give each CoreArchitecture its own intrinsics dict - #8739

Open
jrozner wants to merge 1 commit into
Vector35:devfrom
jrozner:fix-core-arch-shared-intrinsics
Open

jrozner wants to merge 1 commit into
Vector35:devfrom
jrozner:fix-core-arch-shared-intrinsics

Conversation

@jrozner

@jrozner jrozner commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #8738.

CoreArchitecture.__init__ filled self.intrinsics without assigning it, so it wrote into the class-level Architecture.intrinsics shared by every core architecture. As a result:

  • Each architecture's intrinsics listed every built architecture's intrinsics, not just its own.
  • Architecture.__init__, which iterates that dict, could fail with "dictionary changed size during iteration" when two threads built architectures at once.

Each CoreArchitecture now gets an instance dict before the loop fills it.

Tested against 6.1.11226-dev by building every architecture's object from 8 threads. Before: 28 architectures' intrinsics differed from their _intrinsics_info, and the shared dict held 12772 entries. After: every architecture's intrinsics matches its own, and the shared dict stays empty.

CoreArchitecture.__init__ filled self.intrinsics without assigning it,
so it wrote into the class-level Architecture.intrinsics shared by every
core architecture: each architecture's intrinsics listed every built
architecture's, and Architecture.__init__ iterating that dict could fail
with "dictionary changed size during iteration" when two threads built
architectures at once.

Fixes Vector35#8738

This branch has not been deployed

No deployments
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.

CoreArchitecture.intrinsics is shared by every core architecture

1 participant