aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-02-21 15:01:22 -0800
committerTom Cherry <tomcherry@google.com>2018-02-21 15:10:17 -0800
commitee8e3dd67c910907115c7cef87be3d898d71a05d (patch)
tree022d9c97d9bdc95c34dbf0052b8dcf9ce394bc46 /benchmarks
parent44c7b6ad0ac277a8ed3ee2278f6c1ee23f130ab5 (diff)
downloadandroid_bionic-ee8e3dd67c910907115c7cef87be3d898d71a05d.tar.gz
android_bionic-ee8e3dd67c910907115c7cef87be3d898d71a05d.tar.bz2
android_bionic-ee8e3dd67c910907115c7cef87be3d898d71a05d.zip
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
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/property_benchmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/property_benchmark.cpp b/benchmarks/property_benchmark.cpp
index 98687657e..17e37b078 100644
--- a/benchmarks/property_benchmark.cpp
+++ b/benchmarks/property_benchmark.cpp
@@ -98,7 +98,7 @@ struct LocalPropertyTestState {
return;
}
- system_properties_.contexts()->FreeAndUnmap();
+ system_properties_.contexts_->FreeAndUnmap();
for (int i = 0; i < nprops; i++) {
delete names[i];