summaryrefslogtreecommitdiffstats
path: root/dalvik
Commit message (Collapse)AuthorAgeFilesLines
* Improve DexFile debuggingBrian Carlstrom2014-10-271-2/+6
| | | | | Bug: 18105751 Change-Id: I16461b61cb7723ca1f3a52080c377d013d76675b
* Merge "Revert "Timing hacks DO NOT MERGE"" into lmp-devAnwar Ghuloum2014-09-241-17/+0
|\
| * Revert "Timing hacks DO NOT MERGE"Anwar Ghuloum2014-09-241-17/+0
| | | | | | | | | | | | This reverts commit 6d688b8bb051942cd3cdd5fc1e19f42c3049f8a1. Change-Id: Ia4e1ebd0849f4c6b9958d7d78edcedd096042926
* | Libcore: Add parameter to zygote hookAndreas Gampe2014-09-081-4/+6
|/ | | | | | | | Add a parameter to be passed to ART. (cherry picked from commit 255f6218025d5673b1e347b1c31b23202587f8f6) Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
* Timing hacks DO NOT MERGEAnwar Ghuloum2014-09-051-0/+17
| | | | | | | Let's submit to see if any issues remain Bug: 17310019 Change-Id: Ifef1b1645033adcf192d6ec9248456cae28cd09f
* Use absolute path when opening dex files.Calin Juravle2014-08-111-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 Bug: 16930747 (cherry picked from commit e05ad6f7a1e2e34db62587269a066d479dc8e0ad) Change-Id: I4855c7ffa1935a777e19f0f9842c0bd837818f07
* am 6c17caab: Merge "Make system use patchoat to relocate during runtime."Brian Carlstrom2014-08-051-2/+41
|\ | | | | | | | | * commit '6c17caabccd492226c50605929a0eb9e044cb7dc': Make system use patchoat to relocate during runtime.
| * 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
* | Merge "Use the provided path when opening dex files." into lmp-devNarayan Kamath2014-07-171-11/+5
|\ \
| * | Use the provided path when opening dex files.Calin Juravle2014-07-161-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 Change-Id: I5923bdd2520a91019102ef6256d4c97fd5b499df
* | | Point developers toward new code cache location.Jeff Sharkey2014-07-151-2/+2
|/ / | | | | | | | | Bug: 16187224 Change-Id: I95d9c5b6d78c8daece5a91cff8f1b71bd357f8b4
* | am 91a37e34: am 5f7fd3f1: am f560c538: Merge "Revert "Libcore: Remove <> in ↵Andreas Gampe2014-05-061-2/+2
|\ \ | |/ | | | | | | | | | | CloseGuardMonitor test class"" * commit '91a37e34633fd33dc342724bcfcf2dcd76c4a511': Revert "Libcore: Remove <> in CloseGuardMonitor test class"
| * 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
* | am fd71cafe: am 82ae08ae: am 2684c1a5: Merge "Libcore: Remove <> in ↵Andreas Gampe2014-05-031-2/+2
|\ \ | |/ | | | | | | | | | | CloseGuardMonitor test class" * commit 'fd71cafeacb65447d4a7b47ffcfb169522d64271': Libcore: Remove <> in CloseGuardMonitor test class
| * 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
* | am c3eed594: am f6696d69: am eec4356c: Merge "Improve detection of ↵Paul Duffin2014-05-021-0/+119
|\ \ | |/ | | | | | | | | | | CloseGuard protected resource leakage" * commit 'c3eed594ffd6b488b5771cd1e6a9a4c44aa0826b': Improve detection of CloseGuard protected resource leakage
| * 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
* | Add an instructionSet argument to isDexOptNeededInternal.Narayan Kamath2014-04-301-1/+1
| | | | | | | | Change-Id: I558d8f3564a11639dec0ddad9f67e9f321c28f3b
* | am 3eb545e3: am 85fa4285: Merge "Groundwork towards making the Libcore.os ↵Elliott Hughes2014-04-252-5/+5
|\ \ | |/ | | | | | | | | | | functionality public." * commit '3eb545e382a12565ed8779632015d736d6f5c32c': Groundwork towards making the Libcore.os functionality public.
| * Groundwork towards making the Libcore.os functionality public.Elliott Hughes2014-04-242-5/+5
| | | | | | | | Change-Id: Ie700aa16d91fba53fc5eb2555829cb74d84b12ad
* | am 0c2165ad: am e471f800: Merge "Rename Zygote -> ZygoteHooks."Narayan Kamath2014-04-022-187/+78
|\ \ | |/ | | | | | | * commit '0c2165add0458c9f27c3e15875f936d9d3157a4b': Rename Zygote -> ZygoteHooks.
| * 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
* | am 7b652760: am 28e43313: Merge "Remove Zygote.systemInSafeMode."Narayan Kamath2014-03-311-6/+0
|\ \ | |/ | | | | | | * commit '7b6527607ef4f2bb548787b84a03bb76335a9ec4': Remove Zygote.systemInSafeMode.
| * 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
* | | am db965232: am 6586cc6f: Merge "Remove Zygote.fork"Narayan Kamath2014-03-311-17/+0
|\ \ \ | |/ / | | | | | | | | | * commit 'db96523247dc13caa762b7656f3375a4a8e15905': Remove Zygote.fork
| * | Remove Zygote.forkNarayan Kamath2014-03-281-17/+0
| |/ | | | | | | | | | | Currently unused, all callers use forkAndSpecialize. Change-Id: I61df8ed88d7657da8280e044fe99517c47ce8dff
* | Merge "Deprecate use of BrokenTest and SideEffect"Brett Chabot2014-03-112-0/+4
|\ \ | |/ |/|
| * Deprecate use of BrokenTest and SideEffectBrett Chabot2014-03-072-0/+4
| | | | | | | | | | | | | | | | Use expectations files instead. Bug: 12924356 Change-Id: I0ea7917384adf7849404b6da5b7704e6f0c0c1c7
* | 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