OSDN Git Service

bionic: make property area expandable
authorGreg Hackmann <ghackmann@google.com>
Wed, 13 Feb 2013 22:41:48 +0000 (14:41 -0800)
committerGreg Hackmann <ghackmann@google.com>
Wed, 19 Jun 2013 18:02:15 +0000 (11:02 -0700)
commitd32969701be070c0161c2643ee3c3df16066bbb8
tree272345ff49f9b6375799f213af21c711cc36ea84
parent373ea006ced88b280c4a46ec05eafc60b48e99e0
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.

Change-Id: Ibe00ef52464bfa590953c4699a6d98383b0142b1
Signed-off-by: Greg Hackmann <ghackmann@google.com>
libc/bionic/system_properties.c
libc/include/sys/_system_properties.h
tests/property_benchmark.cpp
tests/system_properties_test.cpp