OSDN Git Service

Use reader lock of bulk free lock when not freeing.
authorMathieu Chartier <mathieuc@google.com>
Tue, 24 Jun 2014 00:53:09 +0000 (17:53 -0700)
committerMathieu Chartier <mathieuc@google.com>
Tue, 24 Jun 2014 00:55:22 +0000 (17:55 -0700)
commita1c1c71e24c93a720bbf13de129c75a9a0bde37a
tree7c86b8684123587894997077680fdc7324954f9c
parent9462a31caedefac3e04bd4aa5088e050ed188b30
Use reader lock of bulk free lock when not freeing.

Should help reduce contention observed in systrace.

Change-Id: Iadb81728d4ba797c3a68acea795b15d7f212e89b
runtime/gc/allocator/rosalloc.cc
runtime/gc/allocator/rosalloc.h