[PATCH] D20119: [libunwind] Improve unwinder stack usage
Jonathan Roelofs via cfe-commits
cfe-commits at lists.llvm.org
Mon May 23 09:49:01 PDT 2016
jroelofs added a comment.
In http://reviews.llvm.org/D20119#431997, @rmaprath wrote:
> Addressing review comments from @jroelofs:
>
> - Moved the assertion in `libunwind.cpp` back to `UnwindCursor.cpp` where it really belogs.
>
> @jroelofs: I just realized that, with this new native-only build of `libunwind`, users of `libunwind.h` would have to explicitly `#define` the flag `_LIBUNWIND_IS_NATIVE_ONLY` in order to get the header in-sync with the library. I can't see an immediate problem if they don't define that flag though, it's just that they'll end up passing larger buffers than the library needs. Do you see a problem here?
I'm not convinced it's a problem, (though possibly performance left on the table)...
> 'libc++' uses a `__config_site` mechanism to wire the cmake build options into the `__config` header. We can implement a similar mechanism in `libunwind`, not sure if that's necessary here.
I think that's the right way to go.
Jon
> WDYT?
>
> Thanks.
>
> / Asiri
http://reviews.llvm.org/D20119
More information about the cfe-commits
mailing list