History log of /art/tools/wrapagentproperties/wrapagentproperties.cc
Revision Date Author Comments
5573c37e795668eca81a8488078f798d977685c3 16-Nov-2017 Igor Murashkin <iam@google.com> cpplint: Remove many unnecessary NOLINT

Now that we updated to upstream cpplint, a lot of these NOLINTs are no
longer necessary.

Bug: 68951293
Change-Id: If8ed5ffe89727f313f907a214b6d8fd2a2eddbad
2ffb703bf431d74326c88266b4ddaf225eb3c6ad 08-Nov-2017 Igor Murashkin <iam@google.com> cpplint: Cleanup errors

Cleanup errors from upstream cpplint in preparation
for moving art's cpplint fork to upstream tip-of-tree cpplint.

Test: cd art && mm
Bug: 68951293
Change-Id: I15faed4594cbcb8399850f8bdee39d42c0c5b956
5b80358a9da889cd2ecf18eb49aa42efa409e582 16-Oct-2017 Alex Light <allight@google.com> Don't dlclose plugins or agents during shutdown.

We were dlclosing agents and the JVMTI plugin during shutdown but it
seems that some agents assume that their code will remain loaded even
after the Agent_OnUnload function returns. This caused segfaults
during shutdown in some situations. Since the runtime is shutting down
anyway there is not much to lose by just not unloading these agents
and the plugins they depend on.

Test: stress --cpu 60
Test: ./art/tools/run-prebuilt-libjdwp-tests.sh \
--debug \
--test org.apache.harmony.jpda.tests.jdwp.Events.CombinedEventsTest#testCombinedEvents_05

Bug: 67497270
Bug: 67855829

Change-Id: Ib988c0d21bd12d40f33d709e633312eb68021b38
0ac2e5c1013cb41d73aa87c885fd99d4e5eb7d11 20-Sep-2017 Alex Light <allight@google.com> Add property-changing JVMTI agent wrapper.

Adds libwrapagentproperties agent that allows one to change or add to
the system properties observed by a JVMTI agent. This is useful for
compatibility as some JVMTI agents expect to be able to find system
properties that are not present in ART. With this we can run them
without having to modify the runtime itself.

Also adds a --agent-wrapper flag to run-jdwp-tests.sh to facilitate
the use of this agent.

Test: mma -j40 libwrapagentproperties
Test: ./art/tools/run-jdwp-tests.sh \
--mode=host \
--variant=x64 \
-Xplugin:$ANDROID_HOST_OUT/lib64/libopenjdkjvmtid.so \
--jdwp-path /usr/lib/jvm/default-java/jre/lib/amd64/libjdwp.so \
--agent-wrapper $ANDROID_HOST_OUT/lib64/libwrapagentproperties.so=$PWD/art/tools/libjdwp-compat.props

Change-Id: Ic5eef7e9b4b8c54f4b0683dbb4e71768cbf4f97c