Skip to content

Shape context: key the config caches to live fonts, and free font's configs - #87

Open
pdoane wants to merge 1 commit into
JimmyLefevre:mainfrom
pdoane:config-eviction
Open

pdoane wants to merge 1 commit into
JimmyLefevre:mainfrom
pdoane:config-eviction

Conversation

@pdoane

@pdoane pdoane commented Sep 3, 2026

Copy link
Copy Markdown

Follow up to #67 ... Shape and glyph configs were cached by font address with no eviction, so a font pushed after a popped one at the same address read the old font's configs, and the glyph config key held a pointer into scratch memory that later runs reused. Each pushed font now owns the arena its configs live in, kbts_ShapePopFont frees it and drops both caches' entries, and overrides are copied into that arena so the key compares contents.

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