[DynInst_API:] [dyninst/dyninst] 73cd00: RTlib: use static TLS for the tramp guard (#99)


Date: Fri, 17 Jun 2016 10:51:44 -0700
From: Josh Stone <cuviper@xxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 73cd00: RTlib: use static TLS for the tramp guard (#99)
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: 73cd0019856eca0636e652e402f9eaed6ba9dc61
      https://github.com/dyninst/dyninst/commit/73cd0019856eca0636e652e402f9eaed6ba9dc61
  Author: Josh Stone <cuviper@xxxxxxxxx>
  Date:   2016-06-17 (Fri, 17 Jun 2016)

  Changed paths:
    M dyninstAPI_RT/src/RTcommon.c

  Log Message:
  -----------
  RTlib: use static TLS for the tramp guard (#99)

With dynamic TLS, the call to __tls_get_addr() could reach additional
instrumented code, infinitely recursing back to check the tramp guard.
Static TLS is a limited resource, but this case in RTlib is special
enough to warrant it for safety alone, nevermind performance.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 73cd00: RTlib: use static TLS for the tramp guard (#99), Josh Stone <=