summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorShubham Ajmera <shubhamajmera@google.com>2016-10-27 17:38:40 +0100
committerShubham Ajmera <shubhamajmera@google.com>2016-10-31 13:17:20 +0000
commit0e432f47fb4138429a99af992a59daede6ee9e4f (patch)
treea39a2a694741c9476d505f4a43e2bc461666c14d /annotations/generate_annotated_java_files.py
parent6c9fc6d29d7caee593a475e6b61cab1c2ca7fe43 (diff)
Release CloseGuard object when close is called for AbstractPlainSocketImpl
Also, enabled ResourceLeakageDetector check for URLConnectionTest. When more than one thread has acquired fd in AbstractPlainSocketImpl, then close called by one of the thread doesn't actually release the fd. Fd is release when the last thread stops execution. In the current implementation the CloseGuard object is notified about the close when the last thread stops and finally calls socketClose. As CloseGuard only checks if an explicit call to the "close" method is made, the implementation shouldn't wait for the socket to actually get closed and should notify the CloseGuard object as soon as close is called. The change also includes minor refactoring. Bug: 31542223 Test: cts-tradefed run cts -m CtsLibcoreTestCases -t \ org.apache.harmony.luni.tests.java.net.URLConnectionTest Change-Id: I2db09b029288d734097ee2718e905d0a80d4d23e
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions