summaryrefslogtreecommitdiff
path: root/libc/kernel/tools/cpp.py
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2018-12-14 17:34:05 -0800
committerRyan Prichard <rprichard@google.com>2019-01-03 17:11:27 -0800
commit0b0ee0c634a631693c5d8c8f2d2d42f6ff7ccf7f (patch)
tree4700ca36208c7fae3bf48ac76290f44fe81fee7f /libc/kernel/tools/cpp.py
parentd14d83032c5aeaac49d861683b46a8bedea50195 (diff)
libc_shared_globals: add a constexpr ctor
Having a constexpr constructor should guarantee that the static `globals` variable in __libc_shared_globals is initialized statically (as opposed to dynamically), which is important because __libc_shared_globals is called very early (before the linker has relocated itself). With the constructor, though, the fields can safely have in-line default initializers. Bug: none Test: bionic unit tests Change-Id: Icde821557369625734a4d85d7ff55428bad5c247
Diffstat (limited to 'libc/kernel/tools/cpp.py')
0 files changed, 0 insertions, 0 deletions