summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | am 3d5d8736: Merge "Fix for the JIT blocking mode plus some code cleanup."Ben Cheng2010-03-240-0/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '3d5d87364d062734753bfd26336e96a7e8d03360' into dalvik-dev * commit '3d5d87364d062734753bfd26336e96a7e8d03360': Fix for the JIT blocking mode plus some code cleanup.
| * | Merge "Fix for the JIT blocking mode plus some code cleanup."Ben Cheng2010-03-240-0/+0
| |\ \
| | * | Fix for the JIT blocking mode plus some code cleanup.Ben Cheng2010-03-240-0/+0
| | |/ | | | | | | | | | | | | Bug: 2517606 Change-Id: I2b5aa92ceaf23d484329330ae20de5966704280b
* | | am c66affa4: Switch to VMWAIT while outputting trace data.Andy McFadden2010-03-240-0/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'c66affa440de113df861928c528fcbbead2ead45' into dalvik-dev * commit 'c66affa440de113df861928c528fcbbead2ead45': Switch to VMWAIT while outputting trace data.
| * | Switch to VMWAIT while outputting trace data.Andy McFadden2010-03-240-0/+0
| |/ | | | | | | | | | | | | | | | | | | One of the traces from a monkey run suggests we stalled out during the open/write/close part of writing the trace data. To reduce the chances of spin-on-suspending here we now switch to VMWAIT during the I/O. For bug 2541030. Change-Id: Ice832988213741976917fdd36afa12a694a42e81
* | Merge "Add Java 6's getAvailableLocales/getInstance to DateFormatSymbols and ↵Elliott Hughes2010-03-2413-97/+336
|\ \ | | | | | | | | | DecimalFormatSymbols." into dalvik-dev
| * | Add Java 6's getAvailableLocales/getInstance to DateFormatSymbols and ↵Elliott Hughes2010-03-2413-97/+336
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DecimalFormatSymbols. This patch also improves the documentation of all getAvailableLocales methods to clarify exactly what "available" means. Note that at the moment, many of our implementations just return Locale.getAvailableLocales. It turns out that ICU does the same in most cases, but I'll come back in a separate patch and add code so we just pass these down to ICU, and wash our hands of the matter. I've rewritten DateFormatSymbols.equals, which was very wrong. The time zone names comparison had an invalid optimization, and its slow-path loop was wrong too: it only ever tested values against themselves, which isn't likely to have been the author's intention. I've added toString overrides to DateFormatSymbols and DecimalFormatSymbols, because I need them every time I work on these classes. I've made the constants in DecimalFormatSymbols static final, and given them idiomatic names. (I still think we might benefit from breaking these into separate fields, as in the serialized form, but that's a separate issue.) Finally, and unrelatedly, I've added a comment to BreakIteratorProvider that I missed in my last change to that file. Change-Id: I5d6cb30f9afdb502d38353d8a624dc2f0fef41ac
* | | Show current values of mutexes in thread dump.Andy McFadden2010-03-240-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Experimental feature; may or may not be useful. Dump the current value of half a dozen VM mutexes. This will tell us if they're unlocked, locked, or contended-for at the point somebody does a thread dump. For example, when the GC notices the HeapWorker watchdog has expired: I/dalvikvm( 2828): DALVIK THREADS: I/dalvikvm( 2828): (mutexes: tll=0 tsl=0 tscl=0 ghl=1 hwl=1 hwll=0) In this case, gcHeapLock and heapWorkerLock are held, the rest are not. If this turns out to be useful we can put more effort into the output format. The pthread lib doesn't insert the thread ID unless you're using recursive or errorcheck mutexes, which (for performance reasons) we try not to use. Change-Id: I272534d8c9db6340cfc23bfdddb47beefc2efbfb
* | | Improve the ThreadGroup documentation.Elliott Hughes2010-03-241-128/+97
|/ / | | | | | | | | | | | | (Because I was asked a question about ThreadGroup today, and the answer is always "don't use ThreadGroup"...) Change-Id: Ibaa2f1830e1fe435c9712f3b08506639b9521b9e
* | Merge "Remove explicit 8192 arguments to BufferedReader and friends." into ↵Elliott Hughes2010-03-2321-120/+36
|\ \ | | | | | | | | | dalvik-dev
| * | Remove explicit 8192 arguments to BufferedReader and friends.Elliott Hughes2010-03-2321-120/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These were clearly added just to shut up our own warning, and are now unnecessary and misleading to future maintainers. There's one barely-related change: InputStreamReader and OutputStreamWriter are very similar, and this patch makes them more similar, and adds a few missing modifiers from their fields. Change-Id: I959011f914ff215e92bbfa41c1bac66465803685
* | | am b7b9be13: Merge "Improve java.net.InetAddress.getLocalHost documentation."Elliott Hughes2010-03-231-4/+32
|\ \ \ | |/ / |/| / | |/ | | | | | | Merge commit 'b7b9be1343b59b429b6de9b28ffffbbbde8478c2' into dalvik-dev * commit 'b7b9be1343b59b429b6de9b28ffffbbbde8478c2': Improve java.net.InetAddress.getLocalHost documentation.
| * Merge "Improve java.net.InetAddress.getLocalHost documentation."Elliott Hughes2010-03-231-4/+32
| |\
| | * Improve java.net.InetAddress.getLocalHost documentation.Elliott Hughes2010-03-231-4/+32
| | | | | | | | | | | | | | | Bug: 1518707 Change-Id: I741a7a28325320949e84e997e6a49d3356c9a308
* | | Merge "Fix --debug-port to --debug in vogar usage" into dalvik-devBrian Carlstrom2010-03-231-1/+1
|\ \ \
| * | | Fix --debug-port to --debug in vogar usageBrian Carlstrom2010-03-231-1/+1
| | | | | | | | | | | | | | | | Change-Id: I012100578caa4f5768b7926b4fbe489c80f8d32b
* | | | Merge "Remove the "default buffer size" warnings." into dalvik-devElliott Hughes2010-03-234-122/+38
|\ \ \ \
| * | | | Remove the "default buffer size" warnings.Elliott Hughes2010-03-234-122/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Everyone seems to agree these have outlived their usefulness. Change-Id: Ia2a53ffa1f9498333b4b2d51d5c1db488b89abaf
* | | | | am 02388cf1: Jit: disable for Sapphire.Bill Buzbee2010-03-230-0/+0
|\ \ \ \ \ | |/ / / / |/| | / / | | |/ / | |/| | | | | | | | | | Merge commit '02388cf18a87ba0243cddc6ccf3eaf8668118723' into dalvik-dev * commit '02388cf18a87ba0243cddc6ccf3eaf8668118723': Jit: disable for Sapphire.
| * | | Jit: disable for Sapphire.Bill Buzbee2010-03-230-0/+0
| | |/ | |/| | | | | | | Change-Id: I3c48f239ef9a83fac1ef05d18ea1b00ab27879ff
* | | am d4e0952b: Further refinements to "kill other thread".Andy McFadden2010-03-230-0/+0
|\ \ \ | |/ / | | / | |/ |/| | | | | Merge commit 'd4e0952b73f9054adcc927a1c12699ba63f1672a' into dalvik-dev * commit 'd4e0952b73f9054adcc927a1c12699ba63f1672a': Further refinements to "kill other thread".
| * Further refinements to "kill other thread".Andy McFadden2010-03-230-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switched from SIGSEGV to SIGSTKFLT. Otherwise it looks like we're seg-faulting in code that was actually executing just fine. Ignore SIGSEGV before returning. This avoids creating a second dump when dvmAbort() is called. (If the caller's stack trace were at all interesting, we wouldn't be here, and we can do without the log spam.) Added some more details to the logging. For bug 2517042. Change-Id: Ifff7fd75d6dbf7e3663152787f8921dda215fe40
* | Merge "Revert the removal of java.nio.NIOAccess, which frameworks/base/ ↵Elliott Hughes2010-03-229-0/+100
|\ \ | | | | | | | | | uses." into dalvik-dev
| * | Revert the removal of java.nio.NIOAccess, which frameworks/base/ uses.Elliott Hughes2010-03-229-0/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was removed in https://android-git.corp.google.com/g/45796, but turns out to be used. I think we can do better in the long term, but right now this just removes some of the duplication from the original, and adds comments explaining where it's used. Bug: 2535509 Change-Id: Ie8e717537b8b8c70c8689f2dbb2c3a38501ecc57
* | | Merge "Add the Java 6 java.text.spi and java.util.spi interfaces." into ↵Elliott Hughes2010-03-2211-1/+630
|\ \ \ | | | | | | | | | | | | dalvik-dev
| * | | Add the Java 6 java.text.spi and java.util.spi interfaces.Elliott Hughes2010-03-2211-1/+630
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't currently use these, and don't necessarily plan to. Full support would have a run-time cost, and it's not obvious that it would be particularly useful. Code search can't actually find any users of this stuff in the wild outside of the various VM implementations and their test suites. Bug: 2497395 Change-Id: Ie25aef73ece6d1fd169fdcb7b2f847761d77914d
* | | am 64ee717b: Jit: Re-enable for SapphireBill Buzbee2010-03-220-0/+0
|\ \ \ | |/ / |/| / | |/ | | | | | | Merge commit '64ee717be7cf4aad64371e73cfd180aa4d85dd07' into dalvik-dev * commit '64ee717be7cf4aad64371e73cfd180aa4d85dd07': Jit: Re-enable for Sapphire
| * Jit: Re-enable for SapphireBill Buzbee2010-03-220-0/+0
| | | | | | | | Change-Id: Icbfd8781756c2c7cde88140ed40766e29448b1ff
* | Remove all remaining "@since Android" tags.Elliott Hughes2010-03-2291-677/+71
| | | | | | | | | | | | | | I've fixed a few typos, and removed a few of the more egregiously nonsensical or incorrect comments that were nearby. Change-Id: I35851baebd532f949cc269f4738a26eeb9b6e697
* | Add Java 6's java.util.Arrays changes.Elliott Hughes2010-03-222-197/+2586
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've kept our binary search implementation and just generalized the interface. I've gone out of my way to preserve exception priority. I know we don't agree that it's necessary, but it is important if we want to be able to run other people's tests. If someone wants to write a new high-quality test suite (which would be a great thing to have), we should remove the hacks. (I've commented them.) Otherwise, I've gone out of my way to keep the near-duplicates forced on us by Java's primitive type system as identical as possible. This passes all harmony and jtreg tests. Change-Id: I91fbf707dac76124c6dbe59b0b30b7ded9a69529
* | Merge "Java 6 java.nio.Buffer changes." into dalvik-devElliott Hughes2010-03-199-437/+57
|\ \
| * | Java 6 java.nio.Buffer changes.Elliott Hughes2010-03-199-437/+57
| | | | | | | | | | | | | | | | | | | | | | | | We no longer need the duplicated lower-quality documentation on each subclass, and the NIOAccess class turns out to be unused. Bug: 2497395 Change-Id: Ib7ce8f51aac2b78bf56fff4526af1c2c8818e277
* | | am e9f1038c: Merge "Use pthread_kill(3) instead of kill(2)."Andy McFadden2010-03-190-0/+0
|\ \ \ | | |/ | |/| | | | | | | | | | | | | Merge commit 'e9f1038c3e71dba123532c62741257867d68e08b' into dalvik-dev * commit 'e9f1038c3e71dba123532c62741257867d68e08b': Use pthread_kill(3) instead of kill(2).
| * | Merge "Use pthread_kill(3) instead of kill(2)."Andy McFadden2010-03-190-0/+0
| |\ \
| | * | Use pthread_kill(3) instead of kill(2).Andy McFadden2010-03-190-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Another swing at useful native traces. pthread_kill(3) uses tkill(2) instead of kill(2), so we may have a better chance of the signal landing on the right thread. For bug 2517042. Change-Id: I62871c1e21b11442ea52c861397674f1644f4da9
* | | | Merge "Remove a superfluous declaration (left over from when DexClassLoader ↵Dan Bornstein2010-03-191-1/+0
|\ \ \ \ | |_|_|/ |/| | | | | | | was duplicated from PathClassLoader)." into dalvik-dev
| * | | Remove a superfluous declaration (left over from when DexClassLoader wasDan Bornstein2010-03-191-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | duplicated from PathClassLoader). Change-Id: Iaf3e8a5b23df1a8bbf670bf6d6045fffef6c8fcb
* | | | Track Java 6's BreakIterator API changes.Elliott Hughes2010-03-192-339/+0
| | | | | | | | | | | | | | | | | | | | Bug: 2497395 Change-Id: Iaef75bbd946bebe6201b5f52564bcaf8a4d0e56e
* | | | Clean up the Java side of the ICU interface a bit.Elliott Hughes2010-03-1910-317/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My original intention was just to add the missing "final" on a few classes, but our BreakIterator implementation struck me as excessively bloated and confusing. Change-Id: I2d2dccafe8ec91124f3c83909c9ec647cc2d51e2
* | | | am 7713b900: Merge "Fixing namespace+prefix mode in Expat and removing ↵Jesse Wilson2010-03-194-3/+179
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | | | | optional fields from callbacks." Merge commit '7713b900d12c7a46334db46b33fbe848167189dd' into dalvik-dev * commit '7713b900d12c7a46334db46b33fbe848167189dd': Fixing namespace+prefix mode in Expat and removing optional fields from callbacks.
| * | Merge "Fixing namespace+prefix mode in Expat and removing optional fields ↵Jesse Wilson2010-03-194-3/+179
| |\ \ | | | | | | | | | | | | from callbacks."
| | * | Fixing namespace+prefix mode in Expat and removing optional fields from ↵Jesse Wilson2010-03-194-3/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | callbacks. The first part is related to bug 6632: http://code.google.com/p/android/issues/detail?id=6632 I added these optional fields back when I was originally updating the XML parser for Froyo. I've decided to remove them to simplify migrating between Android and the RI. It should also save some object allocations. Note that the RI v5 and the RI v6 behave differently for optional values on attributes; this motivated me to add the otherwise unfortunate assertOneOf() method to the testcase. (We behave more like RI v6, which is to supply the values upon request) Change-Id: Icfa5d29976a86bf194b3ed7c0d9e2275c3bff9dd
* | | | Added flags to the vm:Barry Hayes2010-03-190-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Xgc:[no]preverify -Xgc:[no]postverify to run verify routines over the heap pre- and post-gc. Changed the Verify.h interface. It now publishes an entry point for verifying a HeapBitmap, rather than the HeapBitmap callback. Added a dvmHeapSuspendAndVerify to Heap.h for verification outside of the GC. Added callbacks before and after GC, under the locks, under flag control. Processing of properties to produce flags is in a different project, frameworks/base Change-Id: I3f3896583fe9e7239bbe2f374d7ed4c5dd5d3e82
* | | | Merge "The "referent" field of java.lang.ref.Reference objects is NOT ↵Barry Hayes2010-03-190-0/+0
|\ \ \ \ | | | | | | | | | | | | | | | included in ifieldRefCount. See Class.c precacheReferenceOffsets for this amusing bit of VM trivia." into dalvik-dev
| * | | | The "referent" field of java.lang.ref.Reference objects is NOTBarry Hayes2010-03-190-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | included in ifieldRefCount. See Class.c precacheReferenceOffsets for this amusing bit of VM trivia. Added an explicit VERIFY_REFERENCE of the Reference.referent field for subclasses of Reference. Change-Id: Ibc8a059ffb353d60b681af1d3a5520c2443d3864
* | | | | am e073b0e8: Move String creation outside O(n^2) path in LogManagerBjorn Bringert2010-03-191-1/+2
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Merge commit 'e073b0e86ea089a08685202f78fe446cd03b3d49' into dalvik-dev * commit 'e073b0e86ea089a08685202f78fe446cd03b3d49': Move String creation outside O(n^2) path in LogManager
| * | | | Move String creation outside O(n^2) path in LogManagerBjorn Bringert2010-03-191-1/+2
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This more than halves the number of Strings and StringBuilders created when constructing a GoogleHttpClient and executing a single HTTP request. Bug http://b/issue?id=2529141 Change-Id: Ia8268fd692b08cf82e4abbffe1459e461e9f7e68
* | | | Merge "Add's Java 6's DecimalFormat.setRoundingMode (et cetera)." into ↵Elliott Hughes2010-03-187-125/+518
|\ \ \ \ | | | | | | | | | | | | | | | dalvik-dev
| * | | | Add's Java 6's DecimalFormat.setRoundingMode (et cetera).Elliott Hughes2010-03-187-125/+518
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Format and NumberFormat's bogusly-public constructors became protected with Java 6. DecimalFormat gained more control over rounding behavior. There's a slight mismatch with our ICU4C-based implementation in that ICU4C doesn't support RoundingMode.UNNECESSARY, so I've had to fake that (but I doubt it's used much, if at all). I've pulled out the obviously Android-specific tests from the harmony DecimalFormatTest.java, but I've only brought back the rounding mode changes from the current harmony code to avoid the new tests' dependencies. I've also added one new test of my own, to check that setMaximumFractionDigits affects rounding as it should (since the harmony tests don't test this, and it's somewhat subtle). Bug: 2497395 Change-Id: Ifafc8bb051e078ead988073281f5c33f0aeb130a
* | | | | am 94e57f7b: Merge "Increase sleep delays on debug thread kill."Andy McFadden2010-03-180-0/+0
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | | | | | Merge commit '94e57f7bb8e60210e379bfea29471db059a7edca' into dalvik-dev * commit '94e57f7bb8e60210e379bfea29471db059a7edca': Increase sleep delays on debug thread kill.