History log of /external/oj-libjdwp/src/share/back/util.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fb6431fcfbec51840dd3ac0a2fd16515b2fbcb1f 22-Mar-2018 Alex Light <allight@google.com> Rewrite classTrack to not use jweaks.

On Android runtimes there is a hard limit for the number of jweaks
that can be active at any one time. By holding a jweak for every class
(often in addition to the one being used by the regular commonRef
code) the debugger was causing the process to run out of the jweaks
when debugging some programs.

This changes the implementation to instead use a second jvmtiEnv which
tags all of the classes in order to keep track of which have been
collected.

Test: Use debugger with AGSA (velvet)
Test: ./art/tools/run-libjdwp-tests.sh --mode=host

Bug: 76096110

(cherry picked from commit c53a7db69ec9c262fcc227403e1336a1f48bfd01)
Merged-In: I2e139ae53c5278a220bd15195627e27274ad816a
Change-Id: I2e139ae53c5278a220bd15195627e27274ad816a
/external/oj-libjdwp/src/share/back/util.c
b6dc4e8ab0eeef33edf1322deaa2863711a95fa8 19-Dec-2017 Alex Light <allight@google.com> Support using best-effort ART_TI_VERSION_1_2 env

This is needed since on user-debug and eng builds we can try to debug
non-debuggable processes. To support his we will try to fall-back to
the best-effort ART_TI_VERSION_1_2 envs.

Bug: 62821960
Test: Manual

Change-Id: I3012279f89f46522cfefe561333e8df333260abe
/external/oj-libjdwp/src/share/back/util.c
b4095656e5ac34ec11785bb4a0bdafdecf22a16f 01-Dec-2017 Alex Light <allight@google.com> Add support for dalvik.system.VMDebug functions

In android the dalvik.system.VMDebug class allows programs to examine
the state of debuggers that are running on them. It allows them to
determine if debuggers are currently attached, could be attached and
when the last debugger operation took place.

This is used for the 'wait-for-debugger' behavior when debugging
android apps among other things.

We implement this by simply having libjdwp take over the definitions
of the relevant methods using RegisterNatives.

Test: ./art/tools/run-libjdwp-tests.sh --mode=host
Test: Manual

Bug: 62821960
Change-Id: I57a8538532134e3415a4c014031ab16bf62a5cd7
/external/oj-libjdwp/src/share/back/util.c
9b7f958d5da8cfa418b4e159cd66207b35155db3 21-Nov-2017 Alex Light <allight@google.com> Reserve negative id's for DDMS.

On android DDMS traffic is multiplexed over the same connection that
jdwp uses and transmits using the same format. In order to avoid
confusing ddms clients we need to ensure that DDMS packets do not use
ids that conflict with jdwp packets.

In order to prevent these collisions we reserve all negative id
numbers for DDMS use and prevent the libjdwp agent from sending
packets with these id numbers.

The reduction in truly unique id numbers from 4294967296 to 2147483648
is not expected to be a problem.

Test: ./art/tools/run-libjdwp-tests.sh --mode=host
Bug: 62821960
Change-Id: Ia05ae056ed7fc6b7b87b0a1d7785eb0653e8356f
/external/oj-libjdwp/src/share/back/util.c
e8012038e003466bcc379ea38acdc2850979b76c 12-Oct-2017 Alex Light <allight@google.com> Change requested properties to be Android ones where applicable

The agent relies on retrieving several properties for configuring
itself. Several of these are implementation defined and android has
the data held in different properties.

This changes the agent to use the android-specific properties.

This also means we no longer need libwrapagentproperties to run the
agent.

Test: ./art/tools/run-jdwp-tests.sh \
--mode=host \
--debug \
--variant=x64 \
-Xplugin:$ANDROID_HOST_OUT/lib64/libopenjdkjvmtid.so \
--jdwp-path $ANDROID_HOST_OUT/lib64/libjdwp.so \
--expectations $PWD/art/tools/libjdwp_art_failures.txt

Test: ./art/test/run-test \
--dev \
--debug-agent $ANDROID_HOST_OUT/lib64/libjdwp.so \
--host \
--64 \
001-HelloWorld

Test: Manual

Bug: 62821960
Bug: 66904994

Change-Id: Icb45aaf52ee0ed9bd93ee65406ad1ec01c3a8da8
/external/oj-libjdwp/src/share/back/util.c
7844c3a96dbc769425046bd57b05b13aa61d8533 30-Apr-2014 jbachorik <none@none> 8042123: Support default and static interface methods in JDI, JDWP and JDB
Reviewed-by: sla, sspitsyn
/external/oj-libjdwp/src/share/back/util.c
f3d11f63158c54533cba0c17f4d5a4b02ebf0de6 26-Dec-2013 lana <none@none> 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
Summary: updated files with 2011, 2012 and 2013 years according to the file's last updated date
Reviewed-by: tbell, lancea, chegar
/external/oj-libjdwp/src/share/back/util.c
94b405df465ecf2b9e0cda5b4df2e22dd615d570 29-Oct-2013 malenkov <none@none> 8022746: List of spelling errors in API doc
Reviewed-by: alexsch, smarks
/external/oj-libjdwp/src/share/back/util.c
2283b9d1d8f03fea8fa192c248b58726a66a6eaf 26-May-2010 ohair <none@none> 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
/external/oj-libjdwp/src/share/back/util.c
6e45e10b03bafdc125c46a4864ba802c24d6bc78 01-Dec-2007 duke <none@none> Initial load
/external/oj-libjdwp/src/share/back/util.c