mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user