OSDN Git Service

Reduce TLAB size
authorMathieu Chartier <mathieuc@google.com>
Fri, 27 May 2016 20:50:59 +0000 (13:50 -0700)
committerMathieu Chartier <mathieuc@google.com>
Sat, 28 May 2016 00:31:32 +0000 (17:31 -0700)
commit9e03b2fbc9843b834bb9d18bc8c3d2ef44a838d8
treeecd18b6f279dcf791eb60b94d0ba7c01cd795387
parentd355b75ca09d83c47e596daeb1a434942de83bee
Reduce TLAB size

Prevent pathological cases like threads fighting for TLABs and doing
back to back GC for alloc each allocation.

No performance change on angler, before:
EEAC: 1161, 1171, 1211
MemAllocTest: 1005, 971, 1148

After:
EEAC: 1173, 1175, 1163
MemAllocTest: 1003, 908, 803

There is also a mysterious speed up on volantis:
EEAC: 1563, 1553, 1543
MemAllocTest: 1474, 1486, 1485

After:
EEAC: 709, 714, 709
MemAllocTest: 664, 684, 655

Bug: 28976163

Change-Id: I564908badf395b6f948aa2dafcb66fe353fc1eba
runtime/gc/heap.h