History log of /bionic/libc/bionic/system_property_api.cpp
Revision Date Author Comments
ee8e3dd67c910907115c7cef87be3d898d71a05d 22-Feb-2018 Tom Cherry <tomcherry@google.com> Remove non-trivial constructors/destructors from SystemProperties

With the goal of disallowing exit time destructors, SystemProperties's
non-trivial destructor needs to be removed. This means replacing the
union hack with yet another hack as we don't want to allocate anything
despite relying on some polymorphism.

Bug: 73485611
Test: boot bullhead
Change-Id: I64223714c9b26c9724bfb8f3e2b0168e47b56bc8
e275d6d72db1868056a204e8483a7346a28cb8d6 12-Dec-2017 Tom Cherry <tomcherry@google.com> Split properties into their own class to make testing better

Reinitializing system properties can result in crashes later in the
program, and is generally not recommended or even supported. This
change moves the actual logic for system properties into a class that
can be tested in isolation, without reinitializing the actual system
property area used in libc.

Bug: 62197783
Test: boot devices, ensure properties work
Test: system property unit tests and benchmarks
Change-Id: I9ae6e1b56c62f51a4d3fdb5b62b8926cef545649