Files
ghostty/src
Mitchell Hashimoto 919b00571a font: preload deferred faces in SharedGrid to avoid data races
Fixes #1722

Previously, SharedGrid.getIndex would properly lock any access to search
for and load the face metadata for a font face that contains a
codepoint. However, that face may be "deferred" (metadata loaded but the
actual face not loaded).

Later, outside of the SharedGrid write lock, a deferred face may be
initialized and cause a data race if two threads are doing this at the
same time, sometimes loading to a crash.

This commit fixes the issue by always preloading font indexes in
getIndex because the usage of getIndex implies a very near term future
use of getFace.
2024-06-07 20:35:01 -07:00
..
2024-03-26 16:14:25 -07:00
2024-06-05 09:43:57 -07:00
2024-05-09 00:03:40 -04:00
2024-06-05 09:11:44 -07:00
2024-05-17 17:13:43 -05:00
2023-06-30 12:15:31 -07:00
2023-09-23 22:46:16 -07:00
fmt
2024-04-02 08:38:51 -07:00
2024-02-09 20:05:11 +01:00
2024-02-04 20:42:42 -08:00
2024-03-22 11:15:26 -07:00
2024-05-08 21:04:50 -07:00
2024-03-26 16:14:25 -07:00
2022-08-18 11:42:32 -07:00
2024-03-22 11:15:26 -07:00