History log of /frameworks/base/core/jni/android_util_Process.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c1b9bbb21c8ad5109978a4e9e770cd18b0257434 13-Jul-2011 Mike Lockwood <lockwood@android.com> Remove some #ifdef HAVE_ANDROID_OS that were needed for the simulator build

Change-Id: I13d9f251f86c05ae5405f37adbf6b8e9660935ba
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/jni/android_util_Process.cpp
10e89712863f5b91a2982dc1783fbdfe39c1485d 09-Jul-2011 Jeff Brown <jeffbrown@google.com> Eliminate single-process mode.
Bug: 5010576

Change-Id: Id450dc83efed4897d1e4ff451530fed14457aace
/frameworks/base/core/jni/android_util_Process.cpp
6af763bec7c3f4d50fee8dd0046409bb8a7fe8f6 05-May-2011 Glenn Kasten <gkasten@google.com> Remove dead code related to gettid

The gettid system call is always available now.

Change-Id: Ib78b41781eda182dc8605daf456bbea7ff7c2dc0
/frameworks/base/core/jni/android_util_Process.cpp
d195e5ab401432ddac659791640a2927fc668699 14-Apr-2011 Elliott Hughes <enh@google.com> Replace a custom AndroidRuntime::findClass with a more targeted fix.

This seems simpler and more contained, and I think the comment explaining
why hoop-jumping is necessary is a bit clearer now.

Change-Id: Ief4afd7cbb42188ed835fce23e497520bdb753a8
/frameworks/base/core/jni/android_util_Process.cpp
dd66bcbf9d6ef0c50a18d9c4b1b39ce7ef7afcc4 12-Apr-2011 Elliott Hughes <enh@google.com> More native code cleanup.

Don't keep unused global references to classes, don't throw exceptions
when an exception is already pending, and fix a (harmless) misunderstanding
about how GetStringChars works.

Change-Id: Ie445036f057daa8a1c76aceb7bad2a84fb81d820
/frameworks/base/core/jni/android_util_Process.cpp
69a017bc1d1649350f830dfada5c6ed5eac0b770 08-Apr-2011 Elliott Hughes <enh@google.com> More JNI exception-throwing cleanup.

There are a few (unimportant) bug fixes here. There were several attempts to
throw exceptions in situations where there's already a pending exception.

There were also cases where the code was wrong; it was checking for a NULL
return from Get*ArrayElements and throwing NPE, but passing NULL is an error
that causes a crash and a NULL return means an exception has already been
thrown. I didn't want to get into the Scoped* classes just yet, but that
was by far the easiest way to fix this.

Change-Id: I0b31160ee51b96e82539f6514b8412b149dba7c3
/frameworks/base/core/jni/android_util_Process.cpp
84bb52ed614f3a13370c923a8bc2a8b7c6db8d30 04-Sep-2010 Dianne Hackborn <hackbod@google.com> Add system property to turn off scheduling groups.

Do this:

adb shell setprop debug.sys.noschedgroups 1

Change-Id: I6e06a74205fd45ee1526ce71fe33944465d39984
/frameworks/base/core/jni/android_util_Process.cpp
160edb3645f8b7012bab70ae6e6e8c4a5733082b 01-Jul-2010 Christopher Tate <ctate@google.com> Add ability to guard a thread against setting its own prio to bg

The guard is compiled out by default because it adds overhead to
android.os.Process.setPriority().

Change-Id: Ibb2a648c6349b381abb7ae62a358888b04fba871
/frameworks/base/core/jni/android_util_Process.cpp
906497c574d45d8dfd295b16dece0d0bc32c0895 11-May-2010 Dianne Hackborn <hackbod@google.com> Hopefully fix issue #2662536: Why is launcher being killed?

It looks like there was a subtle bug where Process.setOomAdj() could
return false just because the given process doesn't exist, even though
it is documented to only return false if OOM killing is not supported
at all. This would cause the activity manager to fall into its code
path of trying to clean up processes itself, which it does a much
poorer problem at. I am thinking we may be seeing this problem more
now that the activity manager is killing background processes itself
when there are too many of them.

In addition, this change cleans up and reduces some of the logging
around killing processes.

Finally, try to improve process LRU management a bit by taking
into account process dependencies. Any dependent processes are
pulled up in the LRU list with the processes that is actually
moving. Also, we bring a process up if someone accesses its content
provider.

Change-Id: I34ea161f839679345578ffe681e8d9c5d26ab948
/frameworks/base/core/jni/android_util_Process.cpp
887f355f99ff83d568ef2885a4fdcaae475583df 08-Dec-2009 Dianne Hackborn <hackbod@google.com> Propagate background scheduling class across processes.

This is a very simply implementation: upon receiving an IPC, if the handling
thread is at a background priority (the driver will have taken care of
propagating this from the calling thread), then stick it in to the background
scheduling group. Plus an API to turn this off for the process, which is
used by the system process.

This also pulls some of the code for managing scheduling classes out of
the Process JNI wrappers and in to some convenience methods in thread.h.
/frameworks/base/core/jni/android_util_Process.cpp
41c4bea27c7dca0223a418296182f46a82e5a050 04-Dec-2009 Christopher Tate <ctate@android.com> Don't accidentally signal multiple exceptions in setThreadPriority()

After signalling an exception due to set_sched_policy() failing (probably
because the thread in question had exited before this function was called), we
proceeded to call setpriority() anyway, and raised *another* exception when it
also failed. We don't do this any more; we just bail after signalling the first
exception.

Change-Id: I397b6a93c73d3f0870176e26759f2bec33e56205
/frameworks/base/core/jni/android_util_Process.cpp
0a42b811aea490a9a605b75f0320101f6eafd283 03-Dec-2009 San Mehat <san@google.com> base: process: Abort setting the process group if one of the threads fails to switch

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/jni/android_util_Process.cpp
957e58670baad8c5995f1368e3b5280f0dbd891f 29-Oct-2009 San Mehat <san@google.com> process: Disable debugging

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/jni/android_util_Process.cpp
a5109a878eeff22e32ee5ce1b1cd15e8daad5234 29-Oct-2009 San Mehat <san@google.com> process: Add debug code to log process group transitions

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/jni/android_util_Process.cpp
242d65bf9faf1d2bc3468490e510551140e23462 12-Sep-2009 San Mehat <san@google.com> process: Switch to common cutils sched_policy api

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/jni/android_util_Process.cpp
181b31a0d87d525ea64102a965210331e0c6885b 09-Sep-2009 San Mehat <san@google.com> Process: Add support for using scheduler policies instead of cgroups.
Preference is given to cgroups if available.

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/jni/android_util_Process.cpp
d87c19f7d7d7c25638e21d3b8a176b0573369493 06-Aug-2009 San Mehat <san@google.com> am 7e63789a: android: cgroups: Don\'t switch threads >= nice 10 when moving all threads to default

Merge commit '7e63789a0e0689d940609b1daceebc1bc08dcbef'

* commit '7e63789a0e0689d940609b1daceebc1bc08dcbef':
android: cgroups: Don't switch threads >= nice 10 when moving all threads to default
7e63789a0e0689d940609b1daceebc1bc08dcbef 06-Aug-2009 San Mehat <san@google.com> android: cgroups: Don't switch threads >= nice 10 when moving all threads to default

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/jni/android_util_Process.cpp
0bca96bcbfe559f9330a01f723c5c9cba51ec05a 17-Jul-2009 Marco Nelissen <marcone@google.com> Make Process.getFreeMemory() return a long instead of an int, to better
work on the simulator now, and phones 2 years from now.
/frameworks/base/core/jni/android_util_Process.cpp
485f971e9d83509197d2e0bc2381c5f34b165626 26-Jun-2009 San Mehat <san@google.com> am 7d619f18: framework: process: Set the control group of a thread to the background group if the priority is logically-lower than ANDROID_PRIORITY_BACKGROUND

Merge commit '7d619f18a277ee3114624df7301db94db83936b9'

* commit '7d619f18a277ee3114624df7301db94db83936b9':
framework: process: Set the control group of a thread to the background group
7d619f18a277ee3114624df7301db94db83936b9 26-Jun-2009 San Mehat <san@google.com> framework: process: Set the control group of a thread to the background group
if the priority is logically-lower than ANDROID_PRIORITY_BACKGROUND

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/jni/android_util_Process.cpp
cf946df3f7a351d03407eaca81ac3dc22f26a8ca 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 35a47a6e: Merge change 5389 into donut

Merge commit '35a47a6eebae21738bcf9b481e0bb606328cbd1a'

* commit '35a47a6eebae21738bcf9b481e0bb606328cbd1a':
Skip spaces and tabs in readProcLines()
add868cebaf62cffe96e79764ea0b7f2320a03eb 25-Jun-2009 Amith Yamasani <yamasani@google.com> Skip spaces and tabs in readProcLines()

This is to fix a problem in the parsing of /proc/pid/status file.
/frameworks/base/core/jni/android_util_Process.cpp
3c3d3081aad5d3a0cadd18c7764974060c1a5274 16-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 727f36c6: Merge change 4265 into donut

Merge commit '727f36c6a1c70ba5519ec9ce2da9ab1cf303a2ef'

* commit '727f36c6a1c70ba5519ec9ce2da9ab1cf303a2ef':
process: Fix bug where if a thread exited while we were changing its control
Fix the build: Remove ADD_SYSTEM_SERVICE, which I had accidentally
1fd0ec738b0a2b97cc28701aa37b1a9869afc684 16-Jun-2009 San Mehat <san@google.com> process: Fix bug where if a thread exited while we were changing its control
group, we'd bail out and report an exception. This situation is *not*
an error.

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/jni/android_util_Process.cpp
1371310b8ab0e8aa458a84cd8615f4b26a48d708 10-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 0e7cf636: Merge change 3725 into donut

Merge commit '0e7cf6366b657498e51b7c7a433b80cfb83152cb'

* commit '0e7cf6366b657498e51b7c7a433b80cfb83152cb':
process: Clean up cgroup management
0cb53209c32457540a0fabe5567f68606c158963 10-Jun-2009 San Mehat <san@google.com> process: Clean up cgroup management

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/jni/android_util_Process.cpp
0795272aa226f4e965968a03daddc53ce30b7cda 20-May-2009 Mathias Agopian <mathias@google.com> move libbinder's header files under includes/binder
/frameworks/base/core/jni/android_util_Process.cpp
3e458241d9930465a20a861ecb42744355d48e48 19-May-2009 San Mehat <san@google.com> process: Add setProcessGroup() hidden API call to set the cgroup of
a process and all its child threads.

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/jni/android_util_Process.cpp
e9d376b801b7890b1ef5006ed55de4208e64bb63 21-Apr-2009 San Mehat <san@google.com> Add support for changing a threads scheduler group. Three groups are available (default, background non interactive, foreground boost). Setting a thread priority to PRIORITY_BACKGROUND will transparently change groups to background

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/jni/android_util_Process.cpp
c64edde69d18498fb2954f71a546357b07ab996a 18-Apr-2009 Evan Millar <> AI 146853: Add kernel wakelock data to batteryinfo dump.
BUG=1755458

Automated import of CL 146853
/frameworks/base/core/jni/android_util_Process.cpp
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/jni/android_util_Process.cpp
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/jni/android_util_Process.cpp
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/jni/android_util_Process.cpp
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/jni/android_util_Process.cpp