OSDN Git Service

Ensure that an explicit GC request initiates a GC.
authorCarl Shapiro <cshapiro@google.com>
Sat, 18 Sep 2010 00:10:48 +0000 (17:10 -0700)
committerCarl Shapiro <cshapiro@google.com>
Sat, 18 Sep 2010 00:10:48 +0000 (17:10 -0700)
commit43c54c0b3a5161dedfee9c255e60788627ed8505
tree6ec9dc5b6b4febba5f8e4b8cc4dc653c049a186f
parent18131c2e1426ba836b5a508842cd370d95d0a964
Ensure that an explicit GC request initiates a GC.

Previously, if a concurrent GC was in-flight when an explicit GC was
requested a warning would be logged about a recursive GC attempt.  Now,
the requesting thread will block until the GC is inactive and afterward
initiate its foreground collection.

Change-Id: Ibc4cef83315ffe7ccf822a32beb4cce5b1c816bd
vm/alloc/Alloc.c