History log of /libcore/luni/src/main/java/java/lang/Runtime.java
Revision Date Author Comments
99b4489d0555c6e0e5df941cbfad4cf250c8f0b8 07-Jun-2013 Elliott Hughes <enh@google.com> Fix @deprecated javadoc orthography.

Change-Id: I6db6d91e21b8e1aca5b5338534196fd5bdef8a06
41d00b744b7772f9302fdb94dddadb165b951220 15-May-2013 Elliott Hughes <enh@google.com> Simplify defaulting for system properties, and trust the environment less.

The originally-reported bug (https://android-review.googlesource.com/58258)
was that dalvik would fail to start if LD_LIBRARY_PATH was unset.

This changes things so we no longer have multiple default values for
java.library.path, cope better with that not being set, and don't set
it if LD_LIBRARY_PATH isn't set.

Change-Id: I55d48a35b1b42df872e6dcd0a38fc7bc4b8cad5a
37a65db1857f76998846e13a5c1eca371d5a7a0d 22-Feb-2013 Ian Rogers <irogers@google.com> Tidy up runtime memory query documentation.

Change-Id: I6c006cabef98bcbb4e1cf1f7dfee86839e04d0d7
652abda3efa231d431375677363f4a36327eeda7 20-Dec-2012 Elliott Hughes <enh@google.com> Support System.loadLibrary for libraries with transitive dependencies.

Bug: 7896159
Bug: http://code.google.com/p/android/issues/detail?id=34416
Change-Id: Id1225a353b52c50bb3eedfd48e92ec85dd60134b
6d17baa25d349e2659eb16fe5eef3088d48e5e22 05-Nov-2012 Elliott Hughes <enh@google.com> Make System.loadLibrary use open(2) rather than stat(2).

This will let us remove read permission from directories containing .so files.

Bug: 6485312
Change-Id: I72daa265ce54747fc91cdb9d915a05a2464041bb
6bc129571d5879c464f2bd4771265885df399008 02-Nov-2012 Elliott Hughes <enh@google.com> Make Runtime.availableProcessors report configured rather than on-line processors.

Also improve some of the Runtime documentation a little.

Change-Id: I49d28aceeb0da47a94378e1052a70704600d3417
d43b9ef11a1095967a3396b246639b563e1a4128 12-Sep-2012 Kenny Root <kroot@google.com> Add consistent reasons for NullPointerException

Semi-automated replacement of empty and non-conforming
NullPointerException reason messages.

(cherry-pick of 86acc043d3334651ee26c65467d78d6cefedd397.)

Change-Id: I6d893979f5c20a50e841e32af9fd7b2d8bc9d54d
86acc043d3334651ee26c65467d78d6cefedd397 12-Sep-2012 Kenny Root <kroot@google.com> Add consistent reasons for NullPointerException

Semi-automated replacement of empty and non-conforming
NullPointerException reason messages.

Change-Id: Iedeb4b21949e973c4042ce5982dda315f2e785e1
75245fcfe3555e4dd06939b9bae366fd3e43b658 02-Apr-2012 Brian Carlstrom <bdc@google.com> Include library path information in BaseDexClassLoader for better error reporting in Runtime.loadLibrary

(cherry-pick of b6a576f43f1c23bb92493590a04bf9c72f092438.)

Change-Id: I6f34862327cf99d8c6f9a7e9aa3aeab47985969b
92f87a4de2f7c360a44f0195ef748874a1f4378e 16-Mar-2012 Jeff Brown <jeffbrown@google.com> Remove unnecessary last parameter to nativeExit.

Change-Id: I4c46e643647440fb3606179f773cd202a38a36ce
9429d06c5427a6cac499ba90f138afac006135a2 21-Jun-2011 Jesse Wilson <jessewilson@google.com> Fix System.runFinalization() to avoid running indefinitely.

This also avoids problems where System.runFinalization() calls
Thread.interrupt() and interrupts a finalizer that is doing
some I/O.

Change-Id: I8de88d7382f684798737ecd19b90d306d9590f1c
http://b/4193517
64c6c367497c7fcf88e7527022234043e4460758 21-Jun-2011 Jesse Wilson <jessewilson@google.com> Implement the finalizer watchdog.

Change-Id: Ia4aaf5f0ef5a2f5f7e6ec3e8b4c4e300c9e1b2ee
http://b/4144865
6a22fa91a64739523c1344023f6dfde57e53110e 31-Mar-2011 Jesse Wilson <jessewilson@google.com> Fix race conditions in finalizers.

We had several small races:
- runFinalization() could return before all objects had been
finalized
- stopFinalizer() could return before the thread was stopped

We still have one scenario where runFinalization returns
prematurely, this is due to a timing issue with the native
heap worker thread.

Change-Id: I304e4f2d744ed714a5c2069f2749df2ec1f40cc8
http://b/4192343
bbfadc8ae01454abba5335fccceaa1c80123ae49 21-Mar-2011 Carl Shapiro <cshapiro@google.com> Move finalization into the core library.

Change-Id: I969ecc25f2a7e655e1093855514102662846dfe1
492cd0c33d104a27599d945ec8d54b0624784e43 18-Mar-2011 Elliott Hughes <enh@google.com> Minor cleanup: remove useless "return"s and dead package-private methods.

Change-Id: I8bb1531e2c0d45a7ec9c0bd4b6195cee15e29ac0
e1ee5a2321507cbfbd4a4381b4c340b06782c58a 18-Mar-2011 Elliott Hughes <enh@google.com> Reimplement Runtime.availableProcessors.

Bug: 3107501
Change-Id: I38dd8d916f9a69da5019c9359774ac28250a78f2
244449b9ccd108197d1c117edda99cd93a891d49 23-Feb-2011 Elliott Hughes <enh@google.com> Fix a comment and remove some duplication.

Change-Id: I67bb9f1c71c774e04698a3e489bd48e9b27b2b64
99e234cc3322b6c88c9d883da45116d9ec8271db 23-Feb-2011 Elliott Hughes <enh@google.com> Be more consistent about VM.

Also add more warnings about the default locale, and remove dead code.

Change-Id: I103cbf52f7aadc8e1132d7fad72ef2b0abc851f4
16b52d1f3e66cfadf3e245de27358b590e201d72 23-Feb-2011 Elliott Hughes <enh@google.com> Better documentation for Runtime.addShutdownHook and File.deleteOnExit.

Change-Id: I1f3efad59f95fce4985aa13cfe15f7b603e5d3d5
fb0ec0e650bf8be35acb0d47da0311a7c446aa33 14-Jan-2011 Elliott Hughes <enh@google.com> Remove useless android-changed comments.

I've changed useful ones to regular comments or TODOs, as appropriate.

I've left ones in code like java.util.concurrent where we really are
tracking an upstream source, making the change markers useful.

I've left a handful of others where I intend to actually investigate
the implied TODOs before deciding how to resolve them.

Change-Id: Iaf71059b818596351cf8ee5a3cf3c85586051fa6
ad41624e761bcf1af9c8008eb45187fc13983717 07-Jan-2011 Elliott Hughes <enh@google.com> Retire SecurityManager.

This change removes all the code that was calling getSecurityManager, and
removes all use of AccessController.doPrivileged. It also changes the
implementation of AccessController so it doesn't actually do anything; it's
only there for source-level compatibility.

Bug: 2585285
Change-Id: I1f0295a4f12bce0316d8073011d8593fee116f71
2fc5dcd5614f910f25d794d272834752a72e63b1 09-Dec-2010 Elliott Hughes <enh@google.com> Apply various Intellij quick fixes to java.lang.

There's one real bug here: our Integer.toString was supposed to have a cache
for small negative values, but an accidentally-introduced temporary meant we
were never using the cached values. Other than that, this is just cleanup.

Change-Id: I457f9bd166c9a029ba8b439f3bbfa926f9b84cc9
f46968564e0a773590292474fa9e50797b18bd42 01-Oct-2010 Elliott Hughes <enh@google.com> Better detail messages for System.loadLibrary UnsatisfiedLinkErrors.

This has a companion change in dalvik:
https://android-git.corp.google.com/g/71344

Bug: 3044042
Change-Id: Ia665ee59adf1ae1dbb45ba95988355839f4b0f23
498e6e60b7c9180b6d58818fe49fd72ad0209a65 04-Sep-2010 Jesse Wilson <jessewilson@google.com> Remove ReaderInputStream and WriterOutputStream.

These classes are unnecessary on our platform, where UTF-8 is
the only supported default encoding.

This was motivated by a search for dangerous calls to InputStream.available(),
which WriterOutputStream has in its flush() method.

Change-Id: Ia8d5da075581caf371e1384e05be29c2fa8a4408
7365de1056414750d0a7d1fdd26025fd247f0d04 12-Aug-2010 Jesse Wilson <jessewilson@google.com> Sorting imports.

Change-Id: I8347bc625480a1c37a1ed9976193ddfedeb00bbc
46ff2ede6c9f5ad431303d388986ec3d72b2fbd3 24-Jun-2010 Elliott Hughes <enh@google.com> Use Charset.defaultCharset() instead of "file.encoding".

It's cheaper, simpler, and we've already found that all bets are off in the RI
if you try to change "file.encoding" at runtime anyway (in terms of whether any
given class notices the change).

Also revert a premature optimization that breaks tests; saving a single
comparison before calling code that takes tens of microseconds is
counterproductive. (I have a bug to make that code faster, but it's never
going to be fast enough to worry about a single comparison.)

Also use the canonical name of ISO-8859-1, and use Charsets.UTF_8 in yet
another place I missed.

Change-Id: Ic15c2bae2f2ed57968ee7e34652f564a1420b458
f33eae7e84eb6d3b0f4e86b59605bb3de73009f3 13-May-2010 Elliott Hughes <enh@google.com> Remove all trailing whitespace from the dalvik team-maintained parts of libcore.

Gentlemen, you may now set your editors to "strip trailing whitespace"...

Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
6b811c5daec1b28e6f63b57f98a032236f2c3cf7 03-May-2010 Peter Hallam <peterhal@google.com> Merge awt-kernel, icu, luni-kernel, prefs, security-kernel, x-net into luni
Merge xml except xmlpull and kxml into luni