| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Java side of OSFileSystem was throwing IOExceptions with no detail
message. If we throw from the native side instead, we can supply
meaningful explanations. This turned up a couple of bugs:
* read, readDirect, readv, writev, and ttyRead would only throw IOException
if they returned < -1, which is impossible. (writev was probably a copy & paste
from readv, and the reads were probably confused by the impedence mismatch
between Unix's use of 0 to mean end of file and -1 to mean error, and Java's
use of -1 for end of file.)
* inconsistent checking for null byte[]s passed in.
* read and write would retry on EINTR, but readDirect and writeDirect wouldn't.
* we'd silently truncate seek/lock/truncate offsets that didn't fit in 32 bits;
we now throw an IOException instead.
It also means a few native functions become "void" because errors are now
reported by throwing exceptions, and the Java functions that used to call them
are no longer needed.
Also change ProcessManager to use jniThrowIOException, remove the unused
throwIOExceptionStr from OSNetworkSystem.cpp, and remove the KnownFailure from
FileTest's test_delete, now we have a fixed version of yaffs that won't
rmdir(2) non-empty directories.
Bug: 1542253
|
|
|
|
|
|
| |
Mark PhantomReference fields as volatile, since the GC can alter them.
Added a simple phantom reference exerciser.
|
|
|
|
|
|
|
| |
Note that this doesn't help us because to Dalvik, all packages have
version "0.0".
Bug: 2099697
|
|\
| |
| |
| |
| | |
* changes:
Fix Class.getConstructor("whatever", (Class[]) null).
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The RI treats null parameterTypes the same as an empty array.
This behavior is specified for getMethod, but only implied for getConstructor.
This patch:
* Fixes getConstructor.
* Improves javadoc for Class methods taking "Class... parameterTypes".
* Adds tests for both getConstructor and getMethod (which was already correct).
* Removes a line of debugging output to System.out.
Bug: 1824973
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(Originally submitted to master, pulling over to eclair.)
The implementation of Thread.isAlive() was changed a couple of years ago
as part of the Harmony integration. The current version relies on the
thread's state value to determine its liveness, but the VM was
originally written to be like JamVM, which used GNU ClassPath, which
uses the vmThread field instead.
It looks like it's possible for Thread.join() to get stuck, though as
far as I know this hasn't happened.
We're essentially rolling back part of 27774-p9. For internal bug 1966734.
Also: ran --update on test 044.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Notable changes
- Stripped "@since Android 1.0" from many files. Most files
are now 100% the same in Dalvik and Harmony.
- AbstractStringBuilder.reverse() supports surrogates
- AbstractStringBuilder shares less to waste less memory
- Bitset optimized
- BufferedInputStream changed to support unsynchronized close()
- BufferedOutputStream does flushInternal
- BufferedReader supports EBCDIC NEL
- Collections.synchronizedList().indexOf() does a copy for more concurrency
- Classes in nio module changed: DatagramChannelImpl, SocketChannelImpl
and ServerSocketChannelImpl (these depend on internal APIs changed in
this update)
- DataInputStream/DataOutputStream now use a small buffer to limit the
number of times the underlying stream is accessed
- Date now has a minutes offset, more efficient toString()
- ExposedByteArrayInputStream: new internal class
- DeleteOnExit moved to top-level class
- FileDescriptor.isValid() now non-native
- Float, Double lessThan optimized (fix for compare(-0.0F, 0.0F) still pending)
- FileURLConnection now guesses content types from streams
- HashMap iterator changes
- Hashtable iterator changes
- INetworkSystem
- removes bind2(), createMulticastSocket, sendStream(),
- renames createSocket to createStreamSocket
- JarURLConnection rewritten
- LinkedHashMap: new iterator
- Locale, Currency, TimeZone: now use ICU in Harmony, plain Java in Dalvik
- ObjectInputStream: Accessor objects in Harmony, direct native in Dalvik
- ProxyClassFile - many changes
- String - optimized ascii for toLowerCase, toUpperCase, compare
- Timer - rewritten
- TreeMap - rewritten
- URLClassLoader - new
- URLConnection - new guessContentTypeFromStream(), uses org.apache.harmony.awt.www.content
to lookup content type handlers
|
|
|
|
|
|
|
|
| |
This caused several concurrency tests to fail when run with timeouts, since
the tests cause park and unpark to happen frequently.
Also fixing a tiny issue with CoreTestRunnable to use the proper tmp directory
and to include the program of a failed external execution.
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
after fork() because the heap lock may be held by a thread that is no longer running.
Merge commit '4ce12e65bb5fb7cb0eaa131e8b5c0b740e8e359e'
* commit '4ce12e65bb5fb7cb0eaa131e8b5c0b740e8e359e':
Fixes deadlock in Runtime.exec(). We can't malloc() or free() after fork() because the heap lock may be held by a thread that is no longer running.
|
| |
| |
| |
| | |
because the heap lock may be held by a thread that is no longer running.
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit '5f9aa93881e796a66c2a625ced1ee89292c2b570'
* commit '5f9aa93881e796a66c2a625ced1ee89292c2b570':
Modified Thread to copy the context class loader from parent to child threads. Re-enabled test that covers this. Removed security-related code from test since it was invalid (the security check
|
| |
| |
| |
| |
| |
| | |
threads. Re-enabled test that covers this. Removed security-related code from test since it was invalid (the security check
doesn't occur if the calling code's class loader is an ancestor of the context class loader).
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit '4e3cc66298b8e6d97670d3ed0b4170fb161d36f3'
* commit '4e3cc66298b8e6d97670d3ed0b4170fb161d36f3':
AI 147732: fix broken links
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
Merge commit '4645b7c3a461769281a0b2b846a26c79e806aaa0' into donut
* commit '4645b7c3a461769281a0b2b846a26c79e806aaa0':
AI 147732: fix broken links
|
| | |
| | |
| | |
| | |
| | |
| | | |
BUG=1810005
Automated import of CL 147732
|
| | |
| | |
| | |
| | |
| | |
| | | |
BUG=1285921
Automated import of CL 145288
|
| | |
| | |
| | |
| | |
| | |
| | | |
BUG=1285921
Automated import of CL 143453
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
Merge commit '1c7ba87b216ec3de563ac4d70548313da9b9bc1b'
* commit '1c7ba87b216ec3de563ac4d70548313da9b9bc1b':
Fix an infinite loop in ClassLoader.isAncestorOf()
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The current version loops endlessly if the callers ClassLoader
is not the same as the system ClassLoader. The cause for this is
a loop variable that is not changed during the loop.
BUG=1732214
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Original author: ursg
Merged from: //branches/cupcake/...
Automated import of CL 145612
|
| |/
| |
| |
| |
| |
| |
| | |
Original author: jorgp
Merged from: //branches/cupcake/...
Automated import of CL 143626
|
| |
| |
| |
| |
| |
| |
| |
| | |
Original author: ursg
Merged from: //branches/cupcake/...
Original author: android-build
Automated import of CL 145649
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
ProcessManager.
If the ProcessManager thread was waiting for a child process to finish,
it could inadvertently capture the exit status of dexopt. This
confused the VM somewhat. With this change the dexopt child runs in
its own process group, and the ProcessManager only waits for children
in the parent's process group.
I also now create a new process in the DexClassLoader test to check for
clashes. (It's a race, but it nearly always hits on the device, and
occasionally hits on desktop.)
BUG=1777736
Automated import of CL 145086
|
|/
|
|
|
|
|
|
|
|
|
| |
failures.
Original author: jorgp
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...
Automated import of CL 143657
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|