android_system_core/libutils
Hans Boehm 1ec5290872 Remove unnecessary getpriority() system call
This was introduced for a valid reason in aosp/1224543, but that reason
was later removed. This code wasn't.

It is not worth making a system call in order to possibly avoid a second
one, which I expect is no more expensive in that, particularly easy,
case.

Test: Treehugger
Change-Id: I346f9b641c6feb791247b16fb900a4ad97e646d2
2024-09-26 12:59:37 -07:00
..
abi-dumps Add getFdStateDebug to access Looper's callbacks 2024-09-17 17:40:11 +00:00
binder Fix libutils_binder_sdk build warnings 2024-05-28 09:51:20 -07:00
include/utils Add getFdStateDebug to access Looper's callbacks 2024-09-17 17:40:11 +00:00
Android.bp libutils: Remove unused dependency on libprocessgroup_headers 2024-06-24 20:18:55 +00:00
BitSet_fuzz.cpp Add fuzzers for libutils classes 2020-05-15 10:30:16 -07:00
BitSet_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
CallStack.cpp Enable weak functions properly. 2024-03-27 17:49:51 -07:00
CallStack_fuzz.cpp Add second batch of fuzzers for libutils 2020-08-07 15:36:39 -07:00
CallStack_test.cpp Insulate against log spam. 2024-07-01 13:21:36 +00:00
CleanSpec.mk
FileMap.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
FileMap_fuzz.cpp Add fuzzers for libutils classes 2020-05-15 10:30:16 -07:00
FileMap_test.cpp Fail explicitly on length overflow. 2020-05-28 18:38:18 -07:00
JenkinsHash.cpp
LightRefBase.cpp libutils: LightRefBase: incStrongRequireStrong 2021-05-04 21:42:26 +00:00
Looper.cpp Add getFdStateDebug to access Looper's callbacks 2024-09-17 17:40:11 +00:00
Looper_fuzz.cpp Add second batch of fuzzers for libutils 2020-08-07 15:36:39 -07:00
Looper_test.cpp Add getFdStateDebug to access Looper's callbacks 2024-09-17 17:40:11 +00:00
Looper_test_pipe.h Add second batch of fuzzers for libutils 2020-08-07 15:36:39 -07:00
LruCache_fuzz.cpp Add second batch of fuzzers for libutils 2020-08-07 15:36:39 -07:00
LruCache_test.cpp Fix LruCache, allow std:string caching 2023-06-15 00:37:52 +00:00
misc.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
MODULE_LICENSE_APACHE2
Mutex_test.cpp libutils: Fix thread safety annotations in Mutex 2019-03-29 12:21:57 -07:00
NativeHandle.cpp Reland^2 "libutils: disable implicit ref base construction" 2021-04-27 00:09:23 +00:00
NOTICE
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
Printer.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
Printer_fuzz.cpp Add second batch of fuzzers for libutils 2020-08-07 15:36:39 -07:00
ProcessCallStack.cpp Migrate String8/16 from .string() to c_str() 2023-08-11 19:53:20 +00:00
ProcessCallStack_fuzz.cpp Fix the missing std 2023-03-01 23:30:29 +00:00
Singleton_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
Singleton_test.h Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
Singleton_test1.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
Singleton_test2.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
StopWatch.cpp We don't need __STDC_FORMAT_MACROS any more. 2024-02-07 18:27:47 +00:00
SystemClock.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
SystemClock_test.cpp Add uptimeNanos to SystemClock 2020-08-07 14:36:07 -07:00
TEST_MAPPING libutils: split out libutils_binder 2023-10-09 21:56:15 +00:00
Threads.cpp Remove unnecessary getpriority() system call 2024-09-26 12:59:37 -07:00
Timers.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
Timers_test.cpp Increase coverage of Timers to 100%. 2021-05-18 13:10:50 -07:00
Tokenizer.cpp libutils: use log/log.h internally 2023-10-07 00:29:44 +00:00
Trace.cpp