[llvm-dev] LLVM libunwind stack usage
Joerg Sonnenberger via llvm-dev
llvm-dev at lists.llvm.org
Wed Jan 20 06:47:29 PST 2016
On Wed, Jan 20, 2016 at 08:32:26AM -0600, Craig, Ben via llvm-dev wrote:
> Are you suggesting that the size of the data arrays in unw_context_t and
> unw_cursor_t be made smaller? If so, then I am concerned that this might
> break binary compatibility for shared-object builds of libunwind (assuming
> that's a thing). Both of those structures are mentioned and used in the
> libunwind.h header.
Yeah, the question of unw_context_t is one of the reasons why I decided
to not include the HP interface the system unwinder in NetBSD. For the
"normal" exception handling code path, the allocation is contained
completely within the library and only exposed via pointer references.
This makes it much easier to only require as much stack space as
necessary.
Joerg
More information about the llvm-dev
mailing list