summaryrefslogtreecommitdiffstats
path: root/dalvik
Commit message (Collapse)AuthorAgeFilesLines
* Libcore: Add parameter to zygote hookAndreas Gampe2014-09-031-4/+6
| | | | | | Add a parameter to be passed to ART. Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
* Use absolute path when opening dex files.Calin Juravle2014-08-061-1/+13
| | | | | | | | | The device always sees absolute paths so this will be no-op but on host this enables testing with relative paths (which is much more convenient). Bug: 16644204 Change-Id: Ife8d231a8127ff97f8fd97c745c64b435cdddf02
* Make system use patchoat to relocate during runtime.Alex Light2014-08-051-2/+41
| | | | | | | | | | Change DexFile.isDexOptNeededInternal to new signature so that we can determine if we need to run patchoat. Added constants for each of the different outcomes of isDexOptNeededInternal. Bug: 15358152 Change-Id: Ibe92d8b55a24bbf718b0416a21b76e5df7a2de26
* Use the provided path when opening dex files.Calin Juravle2014-07-251-11/+5
| | | | | | | | | | | | | | | | Previously we would use the canonical path. If the path contains symlinks it may generate the wrong file name when searching for the containing oat file. This is because we don't apply any canonicalization when dex files are generated so we think we're looking for somthing else. Bug: 15563230 (cherry picked from commit 71202f8ed84edc6ab57e7b6c26f0a1ec97d5adc6) Change-Id: If261e2d80e9cbdc6e7750c73b8e6f298e46b009b
* Deprecate use of BrokenTest and SideEffectBrett Chabot2014-05-212-0/+4
| | | | | | | | | Use expectations files instead. (cherry picked from commit 6a6b612286976cc185c898803fe51e4e062bd9eb) Bug: 12924356 Change-Id: I9b7e71805a80176c873cffe46bed65f81de1903d
* Revert "Libcore: Remove <> in CloseGuardMonitor test class"Andreas Gampe2014-05-061-2/+2
| | | | | | | Dalvik-dev has switched to Java 7 now, so diamonds are allowed now. This reverts commit 307e642f661f73cf22fa689ee40181481768c400. Change-Id: Ia1893bfea09aa2de65fed997bc3e5e3805d92387
* Libcore: Remove <> in CloseGuardMonitor test classAndreas Gampe2014-05-021-2/+2
| | | | | | | Regrettably we're stuck with Java 1.6 in some branches, which will not accept the diamond operator. Change-Id: Iab1bd30bdcd70e312c2809a42d2339e0503a3250
* Improve detection of CloseGuard protected resource leakagePaul Duffin2014-05-011-0/+119
| | | | | | | | | | | | | | | | | | * Add CloseGuardMonitor to intercept and collate CloseGuard reports and if necessary throw an exception listing the resource leaks. * Add ResourceLeakageDetector to abstract away the CloseGuardMonitor which will not work on RI. * Add AbstractResourceLeakageDetectorTestCase as a base class for tests that need to detect resource leaks, in future this could be handled by modifications to Cts and Vogar test runners. * Remove CloseGuardTester and its sole usage in ProcessBuilderTest. * Remove CloseGuardGuard from within URLConnectionTest * Change ZipFileTest, ProcessBuilderTest, URLConnectionTest to use new mechanism, fix issues that are identified and do some cleanup/remove duplicated code. Bug: https://code.google.com/p/android/issues/detail?id=66383 Change-Id: Id026dbb6bc66091a15f07329e6371cd0d1f32cf5
* Add an instructionSet argument to isDexOptNeededInternal.Narayan Kamath2014-05-011-1/+1
| | | | | | (cherry picked from commit 4adab737c923d0cb2796a51500498e04708f1d1e) Change-Id: Ic8e37e97e468b42c64d4a5e8631aab532e04115a
* Groundwork towards making the Libcore.os functionality public.Elliott Hughes2014-04-242-5/+5
| | | | Change-Id: Ie700aa16d91fba53fc5eb2555829cb74d84b12ad
* Rename Zygote -> ZygoteHooks.Narayan Kamath2014-04-022-187/+78
| | | | | | | | The old Zygote class is moving to frameworks/base. The Zygote class provides a set of callbacks that Zygote can call to allow the runtime to perform pre/post fork work. Change-Id: I7400e32906d32e80ffd196ef7a858a8733011ac3
* Merge "Remove Zygote.systemInSafeMode."Narayan Kamath2014-03-311-6/+0
|\
| * Remove Zygote.systemInSafeMode.Narayan Kamath2014-03-281-6/+0
| | | | | | | | | | | | This field has moved to the SystemServer class. Change-Id: Ia66340dd934e6ec62a72e3641085602cb9f252f5
* | Remove Zygote.forkNarayan Kamath2014-03-281-17/+0
|/ | | | | | Currently unused, all callers use forkAndSpecialize. Change-Id: I61df8ed88d7657da8280e044fe99517c47ce8dff
* ART sampling profilerDave Allison2014-03-071-0/+7
| | | | | | | | | | | | | | | Add isDexOptNeededInternal() to the DexFile class. This is like isDexOptNeeded() except takes additional arguments that are used to determine whether a profile has changed of not. The isDexOptNeeded() method is part of the exported API and cannot be changed. The new method is not part of the API. Also add additional argument to the registerAppInfo() methods (the package name). This is used to determine the profile filename. Bug: 12877748 Change-Id: If862cc5d20fae4b9d46c488f401cda6d433b4a57
* Remove old fork-and-specialize APIDave Platt2014-02-131-14/+2
| | | | | | | | | As promised, this is the cleanup patch-set which removes the old native "fork and specialize" API, which has been replaced by a slightly-enhanced one which can close the Zygote socket descriptors in the Zygote child. Change-Id: Icaeab730bee8638354dc664524e4118cdd946d2f
* Finish fixing Zygote descriptor leakage problemDave Platt2014-02-051-3/+19
| | | | | | | | | | | | | | | | In order to prevent Zygote descriptors from leaking into the child environment, they should be closed by the forked-off child process before the child switches to the application UID. These changes close the descriptors via dup2(), substituting a descriptor open to /dev/null in their place; this allows the Zygote Java code to close the FileDescriptor objects cleanly. This is a multi-project change: dalvik, art, libcore, frameworks/base, and external/sepolicy are affected. The CLs need to be approved together, lest the build break or the software fail to boot. Bug: 12114500 Change-Id: I8ea69de7b1cfbd811977a5629eb0af665f6dd66a
* Switch libcore over to a long in DexFile.Elliott Hughes2014-02-041-18/+9
| | | | Change-Id: I7f259bd14134fc6663047b8a1237b8364f10a51d
* Add sample profiling interface to startMethodTracing.Jeff Hao2014-01-061-6/+10
| | | | | | Libcore side of this change. Also changed art and frameworks base. Change-Id: Ie26982dfb09d4098708d701b5429fd09e710a25d
* Fix build harder.Elliott Hughes2013-11-071-1/+1
| | | | | | | | Gah. (cherry picked from commit 61e8a22b0a1a9a9dcfb9a7c492ed2e03ad1f24b6) Change-Id: I555f3166e136dc0b84ccb6d96dc9c081e083d319
* Fix build.Elliott Hughes2013-11-071-0/+8
| | | | | | | | Add a stub for dead functionality. (cherry picked from commit e6a4f2f6cc4721273a71d9820cb2fb6d7937a57a) Change-Id: I0e8a050c447c23aba83fcef75eb1861762d7f123
* Remove dead code.Elliott Hughes2013-11-071-15/+0
| | | | | | (cherry picked from commit c7abaf1f9cd06e8511bc70dd884e57226f635da2) Change-Id: I7ec6daec54daf04a4a5bf8196b8a4a9286216dd2
* Remove zip file extension whitelists when validating dex file path.Hui Lu2013-10-091-27/+26
| | | | | | Just assume a file is either a .dex file or one type of zip files. Change-Id: I9da778f9cc658295d90b240afddfe5bf5af1edf8
* Use the docs-approved Android x.y (Name) format consistently.Elliott Hughes2013-09-032-13/+9
| | | | | | | Also include the API level where the reason for mentioning the version is an API difference (as opposed to simply a behavioral difference). Change-Id: Idd69630fc5d6f6f0bd5d1c524cb32fd8c2fb750d
* Change IsMethodTracingActive to GetMethodTracingMode for libcore.Jeff Hao2013-08-301-2/+3
| | | | | | | Bug: 9968521 Change-Id: I3e36331980a192ab783ede095955b1f71b9ca40e (cherry picked from commit b72f49ea6dac9cc6bf46485be8f97cafa7db3dc3)
* Add libcore support for sample profiling from traceview gui.Jeff Hao2013-08-281-0/+387
| | | | | | | | | This change unifies the native method tracing interface between art and dalvik, and so the two files can merged again. (cherry picked from commit cd28c9550cbc77b5b856a13638f221f1cd9fc6ab) Change-Id: Id834945644615c4d8d8536140842d9036f38fbeb
* Share ClassLoader codeBrian Carlstrom2013-08-143-0/+952
| | | | | Bug: 9071417 Change-Id: Icdde3aace023d1d7509c932cdd71f203213b59d6
* Add java.nio.charsets.StandardCharsets.Elliott Hughes2013-06-281-1/+0
| | | | | Bug: 3484927 Change-Id: I5820267491b850b8fcc696fa48962710de123009
* Clean up the #read javadoc.Elliott Hughes2013-06-241-1/+1
| | | | | | | | By being more consistent in parameter naming, we can inherit more javadoc. Also fix a couple of javadoc warnings in KnownFailure and DataInputStream. Change-Id: I778f40469404fb50c51cdb1068970974f923180c
* Move dalvik.system.VMDebug to libdvmBrian Carlstrom2013-06-071-376/+0
| | | | Change-Id: I7b218f9732b36b9cca5ebc38380f3e7ef0275f34
* Fix @deprecated javadoc orthography.Elliott Hughes2013-06-063-4/+4
| | | | Change-Id: I6db6d91e21b8e1aca5b5338534196fd5bdef8a06
* Move additional files to libdvmBrian Carlstrom2013-06-052-320/+0
| | | | Change-Id: Idc1caee3a0afb61d159cd046348ecb11db3d9e10
* Change the VMStack interface used by serialization.Elliott Hughes2013-06-051-0/+16
| | | | | | (cherry picked from commit 8b44bdb6063816eeb90da6b4f8aa3ed9f38fe140) Change-Id: I5da041caa3037a4093f05dec4e03aed4f466a21d
* Move some files with dalvik dependencies to libdvmBrian Carlstrom2013-05-133-901/+0
| | | | Change-Id: I04498d8d8c4b065dbda8d7b30b8b77ce53e63a77
* Some of our helpers have moved into libnativehelpers.Elliott Hughes2013-05-092-7/+1
| | | | | | (cherry picked from commit 4b5012a6cd5f7f32f33a776c9e2c94ca3f3eb1d5) Change-Id: I8a154f8b6e39b8ed0a633fab9ba31d557b545bb5
* Replace SEAndroid with SELinux.Stephen Smalley2013-04-121-1/+1
| | | | | Change-Id: I59183e966c79c2ba879151c3ac14ff0a86c74c86 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* Fix build.Elliott Hughes2013-03-271-0/+5
| | | | Change-Id: Ia9ec36734d275f677279225d3068e548a3d652ec
* Make NativeTestTarget more useful for benchmarking.Elliott Hughes2013-03-272-70/+34
| | | | | | | | | | | | There's a corresponding benchmark change in code.google.com/p/dalvik. (cherry-pick of d5d401fa8869da90b7f7d167b41fa5de6a38c592, with emptyInlineMethod added back in for now.) Conflicts: dalvik/src/main/native/org_apache_harmony_dalvik_NativeTestTarget.cpp Change-Id: I9b22be15b0708bf47c599bf8ce071cd6e3899d0e
* Add support for Libcore.os.exec*()Nick Kralevich2013-02-051-4/+11
| | | | | | | | Add Libcore support for execv() and execve(). This allows java programs to execute other programs without having to write jni wrappers. Change-Id: I82ddc069b5812ebd40f06b7f65ce173d496e0597
* Fix typos.Elliott Hughes2013-01-171-7/+7
| | | | Change-Id: I6a9f7d8203c91f854fef64c9acd0e0b04459724b
* More backwards compatibility for Facebook.Elliott Hughes2013-01-161-8/+12
| | | | | | | Another day, another private field accessed. Bug: 7726934 Change-Id: I1cf2e9b9c9c7c53afd43642fcbf8f1a1d203bf6c
* Stop Facebook crashing with NoSuchFieldException.Elliott Hughes2013-01-151-9/+9
| | | | | | | | The Facebook app uses reflection to access a private field of BaseDexClassLoader, and won't start if we rename that field. Bug: 7726934 Change-Id: I0b8febed1226655dbfeb5d1a539734b860558df4
* Support System.loadLibrary for libraries with transitive dependencies.Elliott Hughes2012-12-212-0/+21
| | | | | | Bug: 7896159 Bug: http://code.google.com/p/android/issues/detail?id=34416 Change-Id: Id1225a353b52c50bb3eedfd48e92ec85dd60134b
* Add detail messages to all remaining NullPointerExceptions.Elliott Hughes2012-12-042-14/+16
| | | | | | I've left java.util.concurrent alone, since that's upstream code. Change-Id: I349960aaddb78e55d4c336b58b637009db69ff98
* Support directories on the classpath, for resources.Elliott Hughes2012-12-032-41/+59
| | | | | | | | | | | | | | This lets us run tests and legacy code that uses Class.getResource to access resources, because we can put the resource directories on the classpath. I've also rewritten the toString implementation to show what path we're _really_ using, rather than parroting back the original path we were passed, because we won't actually look at all entries in the path, so that can be very misleading. (It certainly confused the hell out of me while working on this change.) Change-Id: Iec4dca2244db9c9c793ac157e258fd61557a7a5d
* Move comment to match codeBrian Carlstrom2012-11-261-5/+5
| | | | | | Followup for change "Lazy parsing of zip files for Java resources." Change-Id: Ic572dff0edda766400ce6cea9fb27344373c73df
* Lazy parsing of zip files for Java resources.Narayan Kamath2012-11-261-19/+39
| | | | | | | | | | | | | Central directories of zip files should be read lazily. They are needed only to service calls to BaseDexClassLoader#findResouce(s). Most android processes don't use these methods since they use android resources. bug:6797061 (cherry-picked from 8dd90ae77922eb05d46c797937620a4c69f758f7) Change-Id: I1a5b5d03572601707e1fb1fd4424c1ae2fd2217d
* am e3b1b9eb: Merge "Gut dalvik.system.TemporaryDirectory, which has nothing ↵Elliott Hughes2012-11-051-62/+3
|\ | | | | | | | | | | | | to do with setting java.io.tmpdir." * commit 'e3b1b9ebaca89b9aaa583ba9953dfce579d32a16': Gut dalvik.system.TemporaryDirectory, which has nothing to do with setting java.io.tmpdir.
| * Gut dalvik.system.TemporaryDirectory, which has nothing to do with setting ↵Elliott Hughes2012-11-051-62/+3
| | | | | | | | | | | | | | | | | | java.io.tmpdir. This has been dead since at least Froyo, but shows up if you're searching trying to find out who's really responsible for setting java.io.tmpdir. Change-Id: I539ad9aeac4ba4556a491cddeddfb6fbc6766b5c
* | am df0d0295: Merge "Make System.loadLibrary use open(2) rather than stat(2)."Elliott Hughes2012-11-051-30/+17
|\ \ | |/ | | | | | | * commit 'df0d029524bc6f4aa6212e8d0e337b590731c7a4': Make System.loadLibrary use open(2) rather than stat(2).