OSDN Git Service

bionic: make property area expandable
authorGreg Hackmann <ghackmann@google.com>
Wed, 13 Feb 2013 22:41:48 +0000 (14:41 -0800)
committerColin Cross <ccross@android.com>
Mon, 24 Jun 2013 23:35:15 +0000 (16:35 -0700)
commitcb215a7e9ecec9feb5aae9d9a5b1c89f392208e7
treef1f337bbd7b7c1406bea8821e69b43082c56ba10
parent0ea1d5c0ae94ee581c72451b20813c028f51090c
bionic: make property area expandable

The property area is initially one 4K region, automatically expanding as
needed up to 64 regions.

To avoid duplicating code, __system_property_area_init() now allocates
and initializes the first region (previously it was allocated in init's
init_property_area() and initialized in bionic).  For testing purposes,
__system_property_set_filename() may be used to override the file used
to map in regions.

Signed-off-by: Greg Hackmann <ghackmann@google.com>
(cherry picked from commit d32969701be070c0161c2643ee3c3df16066bbb8)

Change-Id: I038d451fe8849b0c4863663eec6f57f6521bf4a7
libc/bionic/system_properties.c
libc/include/sys/_system_properties.h
tests/property_benchmark.cpp
tests/system_properties_test.cpp