[merp] Produce hashes for unmanaged thread stacks also (#32565)
authormonojenkins <jo.shields+jenkins@xamarin.com>
Mon, 24 Feb 2020 22:47:36 +0000 (17:47 -0500)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2020 22:47:36 +0000 (17:47 -0500)
Before, this was only done for managed stacks.

Addresses https://github.com/mono/mono/issues/18941

<!--
Thank you for your Pull Request!

If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed.

Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number
-->

Co-authored-by: Alexis Christoforides <alexis@thenull.net>
src/mono/mono/mini/mini-exceptions.c

index 3bcebae..e3a3b0c 100644 (file)
@@ -1783,6 +1783,9 @@ mono_summarize_unmanaged_stack (MonoThreadSummary *out)
 
                if (out->unmanaged_frames [i].str_descr [0] != '\0')
                        out->unmanaged_frames [i].unmanaged_data.has_name = TRUE;
+
+               out->hashes.offset_free_hash = summarize_offset_free_hash (out->hashes.offset_free_hash, frame);
+               out->hashes.offset_rich_hash = summarize_offset_rich_hash (out->hashes.offset_rich_hash, frame);
        }
 #endif