libsysprof: assert hashtable stays read-only

We only mutate this during loading of the document so that we can be
confident in multi-threaded workers after loading. This just asserts
that invariant holds true.
This commit is contained in:
Christian Hergert
2023-08-28 12:19:16 -07:00
parent de55012a8d
commit a3a2b02b0d

View File

@ -2105,7 +2105,10 @@ _sysprof_document_process_symbol (SysprofDocument *self,
if (pid < 0)
pid = 0;
info = _sysprof_document_process_info (self, pid, TRUE);
info = _sysprof_document_process_info (self, pid, FALSE);
if (info == NULL)
g_error ("Failed to find info for PID %d", pid);
if (info->symbol)
return info->symbol;