OSDN Git Service

Fix a crash during VM shutdown.
authorCarl Shapiro <cshapiro@google.com>
Thu, 29 Jul 2010 02:33:46 +0000 (19:33 -0700)
committerCarl Shapiro <cshapiro@google.com>
Thu, 29 Jul 2010 02:33:51 +0000 (19:33 -0700)
commitfe6087708cdeafecf223dd1d2d5e6606db70a4e1
tree64e21f0df3fcd6ddfd798055c7b588e2a0cacbdc
parent4d9c8498873e04e7caf9dc05024727a50643602a
Fix a crash during VM shutdown.

The code to shutdown the GC daemon thread was not checking to see if
the GC daemon thread had been initialized.  This caused pthread_join
to crash waiting for an uninitialized thread object.

Change-Id: Iac338a054775aa024d74fbb4a5de35e12d95b862
vm/alloc/HeapSource.c