summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a simple MD5-based cache to DalvikRunner.Elliott Hughes2010-02-183-9/+147
| | | | | | | This makes the new simpler scheme pretty much free. I've also made a start on simplifying the make rules, though there's more we can do, and I'll look at that next.
* Merge "Make DalvikRunner work on production devices too."Elliott Hughes2010-02-1712-28/+494
|\
| * Make DalvikRunner work on production devices too.Elliott Hughes2010-02-1712-28/+494
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Place pre-built .jar files in our lib/ directory, and dex/push them on demand. Change DalvikRunner to somewhat reduce the number of different classpaths in play. My feeling is that we just want one true classpath: we should build with it on the host, we should run with it on the host, we should dex everything on it, we should upload everything to the device, and we should run with it on the device. Also add a convenience script for running DalvikRunner. ("Vogar" is the proposed open source name for DalvikRunner, which really isn't as dalvikvm-specific as the name might imply.) There's a noticeable performance regression here, so my next change will be to add a cache.
* | Merge "Add a general-purpose scoped pointer for libcore JNI."Elliott Hughes2010-02-171-0/+231
|\ \ | |/ |/|
| * Add a general-purpose scoped pointer for libcore JNI.Elliott Hughes2010-02-101-0/+231
| | | | | | | | | | | | | | This is a functional equivalent of C++0x's std::unique_ptr. (I'm not planning to use this in froyo, but I want it there in case I have to backport changes from dalvik-dev.)
* | Fixing packages for JSON testsJesse Wilson2010-02-173-14/+3
| |
* | Merge "First round of tests for the subset of the org.json in Android."Jesse Wilson2010-02-174-0/+1301
|\ \
| * | First round of tests for the subset of the org.json in Android.Jesse Wilson2010-02-174-0/+1301
| | |
* | | Merge "Detect system-wide safe mode and configure the VM accordingly."Ben Cheng2010-02-162-0/+15
|\ \ \
| * | | Detect system-wide safe mode and configure the VM accordingly.Ben Cheng2010-02-162-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use pthread_cond_wait instead of timed wait for the system_server process to wait on the go-ahead JIT signal. If the phone is booted under system-wide safe mode, such signal will never come so all VM instances (including the system server) will run in the interpreter-only mode. Bug: 2267590
* | | | Merge "Removing unnecessary org.w3c.dom subpackages"Jesse Wilson2010-02-1619-1180/+12
|\ \ \ \
| * | | | Removing unnecessary org.w3c.dom subpackagesJesse Wilson2010-02-1619-1180/+12
| |/ / /
* | | | Merge "Jit: Monitor exit, possible fix for Issue 2396073"Bill Buzbee2010-02-160-0/+0
|\ \ \ \ | |/ / / |/| | |
| * | | Jit: Monitor exit, possible fix for Issue 2396073Bill Buzbee2010-02-160-0/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two problems with monitor-exit: 1. The Jit code wasn't checking for exception thrown following unlocks of fat locks using dvmUnlockObject(). 2. The mterp interpreter unlock code branched to handle exceptions thrown during dvmUnlockObject() with the wrong dalvik PC (the dPC of the unlock, rather than the instruction following the unlock). Similar issue with the x86 interpreter fixed. Also, deleted armv7-a MONITOR_ENTER template, which turned out to be identical to the armv5te one.
* | | Merge "Reverting our test runner's background building behaviour."Jesse Wilson2010-02-161-20/+9
|\ \ \
| * | | Reverting our test runner's background building behaviour.Jesse Wilson2010-02-161-20/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our continuous build has been failing to complete lately. See: http://jwilson.mtv.corp.google.com:8080/job/master_passion/274/consoleFull In addition to this problem the continuous build is compiling many more tests ahead-of-time than we were originally - previously we would only have up to 4 tests ready-to-run at any given time. With this change the ExecutorCompletionService was building and installing all of the tests eagerly. I believe the problem might be a mismatch between how the BlockingQueue and the ExecutorCompletionService select which order to return futures. By removing the ExecutorCompletionService I remove the opportunity for such a conflict!
* | | Flan -> FroyoAndy McFadden2010-02-160-0/+0
|/ /
* | Merge "Minor dexdeps touchups."Andy McFadden2010-02-110-0/+0
|\ \
| * | Minor dexdeps touchups.Andy McFadden2010-02-110-0/+0
| | | | | | | | | | | | | | | | | | Made XML output the default. Added a couple of blank lines in the "brief" output. Added version number (1.1) and a copyright one-liner.
* | | Merge "Use ashmem to create the JIT code cache."Ben Cheng2010-02-110-0/+0
|\ \ \
| * | | Use ashmem to create the JIT code cache.Ben Cheng2010-02-110-0/+0
| |/ /
* | | Merge "Jit: Minor codegen tuning."Bill Buzbee2010-02-110-0/+0
|\ \ \
| * | | Jit: Minor codegen tuning.Bill Buzbee2010-02-110-0/+0
| |/ /
* | | Fixing problems with the test runner's ability to parse expected results files.Jesse Wilson2010-02-113-43/+190
| | | | | | | | | | | | | | | | | | It appears that the original authors of this testing framework didn't really know whether these files were supposed to be XML or HTML, UTF-8 or UTF-16, and so there's quite a mess of processing in order to canonicalize them.
* | | Merge "Fixing some of our XSLT implementation issues."Jesse Wilson2010-02-117-30/+90
|\ \ \
| * | | Fixing some of our XSLT implementation issues.Jesse Wilson2010-02-107-30/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes move our XSLT code to passing 1898/3173 of the OASIS tests. To contrast, the RI passes 2105/3173 tests. Highlights: - Implementing getTextContent() for nodes - Removing validation during transforms. We don't support validation! - Fixing attribute constraints to match the spec - Fixing test suite to not confuse BaseURI from NamespaceURI
* | | | am a38780c9: merge from open-source masterThe Android Open Source Project2010-02-110-0/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'a38780c9858aee807a52ad5615da4d32a4bafca0' * commit 'a38780c9858aee807a52ad5615da4d32a4bafca0': Fix a couple minor bugs (bug 2404859) in TraceDump.c Added support for filter in dmtracedump tool, along with some test cases. Fix for unmatched entry/exit points in test traces
| * \ \ \ merge from open-source masterThe Android Open Source Project2010-02-110-0/+0
| |\ \ \ \
| | * | | | Fix a couple minor bugs (bug 2404859) in TraceDump.cJack Veenstra2010-02-090-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. A switch statement was missing a "break" after option letter "f". 2. The heavily-used function "lookupMethod()" had an expression using mod (%) instead of bitwise-and (&).
| | * | | | Added support for filter in dmtracedump tool, along with some test cases.Rodrigo Ipince2010-02-090-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Some corner cases are still not handled in the code, but will be eventually.
| | * | | | Fix for unmatched entry/exit points in test tracesRodrigo Ipince2010-02-090-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Added support for the creation of test traces with unmatched entries/exits (current implementation segfaulted in some cases)
* | | | | | Make DalvikRunner more resilient to running immediately after device rebootBrian Carlstrom2010-02-114-20/+79
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed EnvironmentDevice.prepare to waitForDevice and waitForNonEmptyDirectory("/sdcard") before proceeding to fix problem with running immediately after "fastboot flashall" dalvik/libcore/tools/runner/java/dalvik/runner/EnvironmentDevice.java Added Adb.waitForDevice and Adb.waitForNonEmptyDirectory dalvik/libcore/tools/runner/java/dalvik/runner/Adb.java Added Command.executeWithTimeout based on code refactored from Mode.java dalvik/libcore/tools/runner/java/dalvik/runner/Command.java dalvik/libcore/tools/runner/java/dalvik/runner/Mode.java
* | | | | Free memory associated with the trace descriptor of ALL dropped JIT work ordersBen Cheng2010-02-100-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | To further reduce the memory consumption only enable the method vs trace compile size stats when WITH_JIT_TUNING is configured.
* | | | | Merge "Support per-application switch to execute the VM in safe mode."Ben Cheng2010-02-101-1/+2
|\ \ \ \ \
| * | | | | Support per-application switch to execute the VM in safe mode.Ben Cheng2010-02-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the implementation on the VM side to consume the android:safeMode=true attribute and force the application to run in interpreter-only mode (the current safe mode). Bug: 2267583
* | | | | | Merge "Added LDMIA/STMIA support to Self Verification mode."Jeff Hao2010-02-100-0/+0
|\ \ \ \ \ \
| * | | | | | Added LDMIA/STMIA support to Self Verification mode.jeffhao2010-02-100-0/+0
| | | | | | |
* | | | | | | Merge "Add a setHandshakeTimeout() to OpenSSLSocketImpl, which sets a read ↵Dan Egnor2010-02-101-0/+30
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | timeout that only applies to the SSL handshake step."
| * | | | | | | Add a setHandshakeTimeout() to OpenSSLSocketImpl, which setsDan Egnor2010-02-101-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a read timeout that only applies to the SSL handshake step. Bug: 2362543
* | | | | | | | Fix NamingPatternCodeFinder to detect final classesBrian Carlstrom2010-02-101-1/+1
| | | | | | | |
* | | | | | | | Merge "Remove TestRunner.success field / Make postCompileTest return void"Brian Carlstrom2010-02-1024-126/+198
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | |
| * | | | | | | Remove TestRunner.success field / Make postCompileTest return voidBrian Carlstrom2010-02-1024-126/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SUMMARY: - Change TestRunner subclasses to instead implement a Runner interface - Cleanup runtime classpath generation - Misc improvements DETAILS: Change TestRunner subclasses to instead implement a Runner interface *Runner classes now implement the new Runner interface instead of extending TestRunner. prepareTest/test now take a "Class testClass" instead of accessing a "String testClass" from the superclass. This also means that all their "static void main" methods are removed and replaced with a single main method in TestRunner. TestActivity can now instantiate a TestRunner and call its "boolean run()" method to execute tests and retrieve their SUCCESS/FAILURE status via the return value, allowing the removeal of TestRunner.success. Mode now needs to explicitly include TestRunner.java in the list of code to compile because it no longer is implicitly found by compiling its former subclasses. java/dalvik/runner/TestRunner.java java/dalvik/runner/Runner.java java/dalvik/runner/CaliperRunner.java java/dalvik/runner/JUnitRunner.java java/dalvik/runner/JtregRunner.java java/dalvik/runner/MainRunner.java java/dalvik/runner/Mode.java CodeFinder.getRunnerClass now returns a Runner, not a TestRunner java/dalvik/runner/CodeFinder.java java/dalvik/runner/JUnitFinder.java java/dalvik/runner/CaliperFinder.java java/dalvik/runner/JtregFinder.java java/dalvik/runner/MainFinder.java Similarly, TestRun.runnerClass is now a Runner, not a TestRunner java/dalvik/runner/TestRun.java Move logic to run a test based on TestProperties.RUNNER_CLASS from TestActivity to TestRunner since its now used in all cases, not just the Activity case. TestActivity.ActivityRunner remains the one subclass of TestRunner, accessing the TestRunner.run(...) logic via super.run(...), allowing it to maintain its special result file writing logic. java/dalvik/runner/TestActivity.java java/dalvik/runner/TestRunner.java Moved writing of TestProperties.RUNNER_CLASS from ActivityMode now that it is used for all Modes. java/dalvik/runner/ActivityMode.java java/dalvik/runner/Mode.java Since CaliperRunner now has a "Class testClass", it uses the more strongly typed Runner.main(Class<? extends Benchmark>, ...) API. java/dalvik/runner/CaliperRunner.java Fixing javadoc TestRunner->Runner java/dalvik/runner/TestProperties.java Adding new Runner class to the build. Android.mk Cleanup runtime classpath generation Changed Mode.postCompileTest to return void instead of Classpath to match Most.postCompileTestRunner. Removed passing test classpath from compile to run via TestRun.testClasspath. Instead, Vm.getRuntimeSupportClasspath now is used to compute full classpath, instead of using the old TestRun.getTestClasspath in Mode. Mode.compileTest now uses a boolean to indicate compilation success, instead of null/non-null Classpath. TestRun.testClasspath is now replaced with TestRun.testCompiled which is used to track compilation success. In retrospect, it seems like using the absense of a Classpath as an indication of compilation success/failure seems like somewhat of a hack. java/dalvik/runner/Mode.java java/dalvik/runner/ActivityMode.java java/dalvik/runner/DeviceDalvikVm.java java/dalvik/runner/JavaVm.java java/dalvik/runner/TestRun.java New deviceDexFile to make sure dex file name generation stays consistent between build time and compile time. java/dalvik/runner/DeviceDalvikVm.java Changed MainRunner implementation to more closely match JtregRunner java/dalvik/runner/MainRunner.java Misc improvements Changed TestActivity to use a shutdown hook to catch when a test calls System.exit so we can be sure to write a result file and not simply wait for the timeout to catch our failure to return. java/dalvik/runner/TestActivity.java Changed Mkdir.mkdirs to use new Command().execute to get automatic logging of command execution with --verbose java/dalvik/runner/Mkdir.java Improved javadoc java/dalvik/runner/Mode.java Fixed apparently misplaced @SuppressWarnings("unchecked") java/dalvik/runner/OptionParser.java Enabling warnings as errors and turning on unchecked warnings. Android.mk Made sure test script works with fresh device and improved logging test-dalvik-runner.sh
* | | | | | | | Added missing break statements and improved debugging in SelfVerification.jeffhao2010-02-090-0/+0
| | | | | | | |
* | | | | | | | Merge "Jit: Phase 1 of register utility cleanup/rewrite - the great renaming"Bill Buzbee2010-02-090-0/+0
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | Jit: Phase 1 of register utility cleanup/rewrite - the great renamingBill Buzbee2010-02-090-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renaming of all of those register utilities which used to be local because of our include mechanism to the standard dvmCompiler prefix scheme.
* | | | | | | | Merge "DalvikRunner can run a test as an android.app.Activity & ↵Brian Carlstrom2010-02-0935-421/+1403
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | | | | | | | | | | PathClassLoader.toString change"
| * | | | | | | DalvikRunner can run a test as an android.app.Activity & ↵Brian Carlstrom2010-02-0935-421/+1403
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PathClassLoader.toString change SUMMARY: - PathClassLoader.toString prints path - DalvikRunner --mode activity now working - new DalvikRunner --no-clean vs --no-clean-after behavior DETAILS Dalvik runtime change Changed PathClassLoader.toString to print the class loaders path Also fixed variable name in commented out debug code libcore/dalvik/src/main/java/dalvik/system/PathClassLoader.java Dalvik Runner changes Mode is the new abstract superclass of the existing Vm class. ActivityMode is for the new Mode of running as a Activity on the device. Vm is now a subclass of Mode and its JavaVm and DeviceDalvikVm still exist although some code has been refactored into the new Environment clases (see below) libcore/tools/runner/java/dalvik/runner/Mode.java libcore/tools/runner/java/dalvik/runner/ActivityMode.java libcore/tools/runner/java/dalvik/runner/DeviceDalvikVm.java libcore/tools/runner/java/dalvik/runner/JavaVm.java libcore/tools/runner/java/dalvik/runner/Vm.java Environment and its subclasses EnvironmentHost and EnvironmentDevice allow us to reuse some common code between the two different device modes (ActivityMode and DeviceDalvikVm). Basically code that was more about where and how to do things based on where the code was running as opposed to how the code was running moved to the Environment classes. For example, prepare() logic for /sdcard/ and ADB code in general. libcore/tools/runner/java/dalvik/runner/DeviceDalvikVm.java libcore/tools/runner/java/dalvik/runner/Environment.java libcore/tools/runner/java/dalvik/runner/EnvironmentDevice.java libcore/tools/runner/java/dalvik/runner/EnvironmentHost.java libcore/tools/runner/java/dalvik/runner/JavaVm.java libcore/tools/runner/java/dalvik/runner/Vm.java Adding new files libcore/tools/runner/Android.mk Aapt is a wrapper for "aapt" similar to Adb and Dx libcore/tools/runner/java/dalvik/runner/Aapt.java Added Adb.install and Adb.uninstall methods Changed from using File.toString to File.getPath for clarity libcore/tools/runner/java/dalvik/runner/Adb.java CodeFinder has been extended so that Driver can ask finders what they need to build and run, specifically through the new getRunnerJava and getRunnerClasspath. (As part of this NamingPatternCodeFinder's runnerClass was changed to getRunnerClass for consistency with the superclass.) This was important for running as an Activity because we want to minimize what we pack into the APK file because of the "dx --dex" runtime and not just pull in all possible runners and supporting libraries. TestRun objects also hold onto this information from their finders. libcore/tools/runner/java/dalvik/runner/Driver.java libcore/tools/runner/java/dalvik/runner/CodeFinder.java libcore/tools/runner/java/dalvik/runner/CaliperFinder.java libcore/tools/runner/java/dalvik/runner/JUnitFinder.java libcore/tools/runner/java/dalvik/runner/JtregFinder.java libcore/tools/runner/java/dalvik/runner/MainFinder.java libcore/tools/runner/java/dalvik/runner/NamingPatternCodeFinder.java libcore/tools/runner/java/dalvik/runner/TestRun.java TestRunner TestRunner's className is now testClass to clarifiy it from the runnerClass. libcore/tools/runner/java/dalvik/runner/TestRunner.java libcore/tools/runner/java/dalvik/runner/CaliperRunner.java libcore/tools/runner/java/dalvik/runner/JUnitRunner.java libcore/tools/runner/java/dalvik/runner/JtregRunner.java libcore/tools/runner/java/dalvik/runner/MainRunner.java Classpath now has a Collection.of and Collection.addAll that take a Collection<File> instead if just a File... libcore/tools/runner/java/dalvik/runner/Classpath.java Added Command.args(File arg) to avoid a lot of args(file.getPath()) libcore/tools/runner/java/dalvik/runner/Command.java Option --clean has expanded to --clean-before, --clean-after, and --clean. Now --no-clean will remove nothing as Elliot requested. --no-clean-after is now what is useful for DalvikRunner debuggin. Default is still to clean before and after. libcore/tools/runner/java/dalvik/runner/DalvikRunner.java Moved Vm.DALVIK_RUNNER_HOME to DalvikRunner.HOME. /tmp/<UUID> paths are now /tmp/dalvikrunner/<UUID> paths are easier cleanup. libcore/tools/runner/java/dalvik/runner/DalvikRunner.java Driver was changed to use a ExecutorCompletionService around the ExecutorService so that exceptions from the execute threads could be reported on the main thread. libcore/tools/runner/java/dalvik/runner/Driver.java We now build the testrunner before the test so that its classes will be around to be packed into APK files. libcore/tools/runner/java/dalvik/runner/Driver.java Dx.dex now takes File arguments instread of Strings. Dx.dex also needs to pass additional memory arguments to not run out of memory building the big dex for the APK. The values I used where from the build/core/definitions.mk libcore/tools/runner/java/dalvik/runner/Dx.java postCompile was split into postCompileTestRunner and postCompileTest because the packaging requires are very different in each case for ActivityMode. Specifically, the test runner is not post-packaged seperately, but packaged in the APK with each test. libcore/tools/runner/java/dalvik/runner/ActivityMode.java libcore/tools/runner/java/dalvik/runner/DeviceDalvikVm.java libcore/tools/runner/java/dalvik/runner/JavaVm.java libcore/tools/runner/java/dalvik/runner/Vm.java Changed testClass to test to avoid collision with new superclass field libcore/tools/runner/java/dalvik/runner/JtregRunner.java libcore/tools/runner/java/dalvik/runner/MainRunner.java Added @SuppressWarnings("unchecked") libcore/tools/runner/java/dalvik/runner/OptionParser.java New android.app.Activity based on Elliot's TestAPK. It encapsulates an ActivityRunner that invokes the appropriate TestRunner based on test.properties. libcore/tools/runner/java/dalvik/runner/TestActivity.java New class that shared contains (old and some new) between the DalvikRunner and the TestRunner. libcore/tools/runner/java/dalvik/runner/TestProperties.java Regression test script for debugging the matrix of various DalvikRunner modes and test types: libcore/tools/runner/test-dalvik-runner.sh
* | | | | | | | Free the memory associated with the trace descriptor of dropped JIT work orders.Ben Cheng2010-02-080-0/+0
| |/ / / / / / |/| | | | | |
* | | | | | | Jit: Startup/Shutdown cleanupBill Buzbee2010-02-080-0/+0
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A legacy of early parallel Jit development was separate Startup & Shutdown code for the interpreter half of the jit (dvmJitStartup/dvmJitShutdown) and the compiler half (dvmCompilerStartup/dvmCompilerShutdown). This cl eliminates the dvmJit pair. Additionally, guard coded added to the framework callback to return immediately if the Jit isn't active.
* | | | | | Jit: Remove references to interpState from C interpreterBill Buzbee2010-02-080-0/+0
|/ / / / / | | | | | | | | | | | | | | | | | | | | Fix for Issue 2157987: Eventual isssue with interpState->jitState in <dalvik/vm/mterp/c/header.c