This tool is a replacement for the Jack plugin that allows injection of static method calls before lock enter and exit. A common use case would be to boost a thread's priority as soon as it acquires a heavily contented lock and resetting the priority upon release. This tool is meant to be optionally invoked from /build/core/ rules during the build process. Test: JUnit Tests / resulting image on a bullhead. Change-Id: If400414a0bf50f03768a1de2ebee42086a9d701f
16 lines
327 B
Makefile
16 lines
327 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_JAR_MANIFEST := manifest.txt
|
|
LOCAL_MODULE := lockedregioncodeinjection
|
|
LOCAL_SRC_FILES := $(call all-java-files-under,src)
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
asm-5.2 \
|
|
asm-commons-5.2 \
|
|
asm-tree-5.2 \
|
|
asm-analysis-5.2
|
|
|
|
|
|
include $(BUILD_HOST_JAVA_LIBRARY)
|