OSDN Git Service

Reference class handling overhaul.
authorCarl Shapiro <cshapiro@google.com>
Fri, 26 Mar 2010 22:34:39 +0000 (15:34 -0700)
committerCarl Shapiro <cshapiro@google.com>
Tue, 6 Apr 2010 04:00:26 +0000 (21:00 -0700)
commit2954074adc6a9793f38c0c58d03ec1dc057406eb
tree3e5da5c853f5fdaee9b40376ff6f96ca63b3f619
parent32f909b165aae4c002ebebe6f8aab06ca7e537ba
Reference class handling overhaul.

* Do not mark through soft-reachable referents when scanning f-
  reachable objects.

* Make the SoftReference clearing policy local to better conform to
  developer expecataions.

* Eliminate SCHEDULED_REFERENCE_MAGIC, a hold-over from a previous
  reference management algorithm.

* Move soft, weak and phantom reference processing into their own
  subroutines.

Change-Id: I992788d58f10fa08336e6ac3f0a4dbfa3fc2086f
vm/Globals.h
vm/Jni.c
vm/alloc/Heap.c
vm/alloc/Heap.h
vm/alloc/HeapInternal.h
vm/alloc/HeapTable.c
vm/alloc/HeapWorker.c
vm/alloc/MarkSweep.c
vm/alloc/MarkSweep.h