summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2017-03-22 15:30:18 +1100
committerTobias Thierer <tobiast@google.com>2017-03-23 23:12:56 +1100
commit976ab374cb25fea35f553f82cd970b967ac4c92e (patch)
tree28c561b668b4c1a3d1d1169119856a3f24c07cae /include/ScopedJavaUnicodeString.h
parent63b4fcd9f566e13536713e041d9b4e7c6cf8ef53 (diff)
Improve upstream comparison tool
Add functionality to quantify the size of the difference (line-based edit distance) against each upstream. The tool now prints out a guess of the upstream (based on minimal edit distance) as well as the quantified difference against each upstream, in tab separated values format. The comparison currently runs in O(N^2) and takes 10-15min on a laptop but could be improved to run in O(N * D) for files with less than D lines difference. This helps identify which files we have forgotten to update to OpenJDK8u121, in cases where Android changes exist (i.e. the file contents are not identical to any upstream). This reveals that on top of the 111 files without Android changes that had been forgotten, there are about again that many that had Android changes. The forgotten files tend to cluster by packages, i.e. we seem to have forgotten several entire packages. Test: ./oj_upstream_comparison.py --upstream_root /tmp/openjdk/ Bug: 35910877 Change-Id: If268785de40cd078d5b722c952480cd46fc3470a
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions