summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorPete Bentley <prb@google.com>2019-11-29 16:51:42 +0000
committerPete Bentley <prb@google.com>2020-04-06 12:53:08 +0100
commitf69e5d9b736d80dd1c105a519024f376f8ad1796 (patch)
treeac0fdecd7d95243ec9012ccfc5fac43098aaf7f3 /annotations/generate_annotated_java_files.py
parentfa482ede6cce12f13b99522f704c491a1549b5d8 (diff)
Force create SocketImpl in test_connectLjava_net_SocketAddressI_setSOTimeout.
Prevents unsynchronized race between two threads to create it later which end up attempting to set the FileDescriptor owner twice. Tested by adding sleeps to one code path to force the race to occur 100% when running OldSocketTest.test_connectLjava_net_SocketAddressI_setSOTimeout() and verifiying the test passes again with this change. This also explains and should fix the resource leakage noted in an older bug. Bug: 31820278 Fixes: 144258500 Test: See above. Change-Id: I8814bbe19aee0bad80106cdb8eb468a81d8071b2 (cherry picked from commit 2b55dc7947d341b571a2a26654e2907af8e1a35d)
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions