OSDN Git Service

Added "dexopt for SMP" flag.
authorAndy McFadden <fadden@android.com>
Thu, 9 Sep 2010 19:54:43 +0000 (12:54 -0700)
committerAndy McFadden <fadden@android.com>
Thu, 9 Sep 2010 20:12:08 +0000 (13:12 -0700)
commitc58b9ef90319c4edad93300151c088434092e9e0
tree864cc7dd7ad05cd99b5ba93eed72fb50e220c392
parent55985d7043d1f22a2451d9027974ed305f4f5222
Added "dexopt for SMP" flag.

Currently, dexopt always runs on the target device, which means that
decisions about whether or not to convert certain opcodes to SMP-safe
variants could be made based on #ifdefs.

Since we are planning to run dexopt on the host, we need to be able
to configure SMP-mode independently.  This change adds a global variable
that the dexopt code can check.

There is currently no command-line argument to set this, since it will
be set by "dexopt" rather than "dalvikvm", and the exact method of
launching dexopt from the host build is still mildly TBD.

Bug 2981136.

Change-Id: If20aa6f513896fd8b35394388eaca6214f0449a7
vm/Globals.h
vm/Init.c
vm/analysis/Optimize.c