Skip to content

Isolate TagSet copies to prevent shared mutation#1

Open
Stan185 wants to merge 2 commits intogithub_branch1from
master
Open

Isolate TagSet copies to prevent shared mutation#1
Stan185 wants to merge 2 commits intogithub_branch1from
master

Conversation

@Stan185
Copy link
Owner

@Stan185 Stan185 commented Jan 30, 2026

TagSet copies no longer pull through from the mutable template; they copy existing tags and only use the template’s fallback (the HTML defaults) for lazy lookups. This keeps parser/session tagsets independent and prevents cross-thread mutation that can lead to ConcurrentModificationException.

This keeps the use of the HTML default tagset sparse in memory.

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.

1 participant