OSDN Git Service

Use runFinalizationWithTimeout for native allocations
authorMathieu Chartier <mathieuc@google.com>
Fri, 5 Jun 2015 20:21:05 +0000 (13:21 -0700)
committerMathieu Chartier <mathieuc@google.com>
Fri, 5 Jun 2015 23:16:38 +0000 (16:16 -0700)
commit3b532d744034b43ed329a3198f15846d80fec3f0
tree05195156ad2d516396d88c8356d4fc9916c089f1
parent7fabaa6ba1927d21a317c03499b705cbde4f6a47
Use runFinalizationWithTimeout for native allocations

Prevents deadlocks by not waiting longer than 250ms for finalizers
to complete.

Bug: 21544853
Change-Id: I57b2f7ae8b74185922eb3c15ba0ab71a4d2348aa
runtime/base/time_utils.h
runtime/gc/heap.cc
runtime/gc/heap.h
runtime/well_known_classes.cc
runtime/well_known_classes.h
test/004-NativeAllocations/src/Main.java