[PATCH] D110268: [llvm-profgen] Fix a bug of assertion

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 22 13:17:22 PDT 2021


wenlei added a comment.

In D110268#3016367 <https://reviews.llvm.org/D110268#3016367>, @wlei wrote:

> In D110268#3015817 <https://reviews.llvm.org/D110268#3015817>, @hoy wrote:
>
>> Good catch. What is the case you saw that the call stack has only one leaf frame? Is it in the `main` function?
>
> Good question. `main` should be one case if it hit any samples. In my run, it showed like below. seems it's from external lib.
>
>   jemalloc_je_edata_heap_insert
>   jemalloc_je_arena_dalloc_bin_locked_handle_newly_nonempty
>   jemalloc_je_edata_heap_remove_first
>   jemalloc_je_arena_cache_bin_fill_small
>   extent_record
>   _ZdlPvm
>
> Not sure why this doesn't have context.

perhaps external code called these allocator functions. we're not going to optimize these anyways.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110268/new/

https://reviews.llvm.org/D110268



More information about the llvm-commits mailing list