Remove extraneous changes beyond avoiding the false positive warnings#12731
Remove extraneous changes beyond avoiding the false positive warnings#12731kannanjgithub merged 7 commits intogrpc:masterfrom
Conversation
…, since super.shutdown() is never expected to throw. Also remove redundant unit test. Rework of PR grpc#12705.
core/src/main/java/io/grpc/internal/ManagedChannelOrphanWrapper.java
Outdated
Show resolved
Hide resolved
…, since super.shutdown() is never expected to throw. Also remove redundant unit test. Rework of PR grpc#12705.
…ework-orphan-wrapper-pr
…, since super.shutdown() is never expected to throw. Also remove redundant unit test. Rework of PR grpc#12705.
…, since super.shutdown() is never expected to throw. Also remove redundant unit test. Rework of PR grpc#12705.
…ework-orphan-wrapper-pr
…, since super.shutdown() is never expected to throw. Also remove redundant unit test. Rework of PR grpc#12705.
|
Thanks for the clarification. I may be missing something, but I wanted to better understand the intent of the dummy Since This might be a minor point, but would placing the dummy Just trying to make sure I understand the reasoning correctly. |
The concern was that when inlining or eager field reads happen, fields from ManagedChannelOrphanWrapper could be on the stack such that the object itself is no longer needed. That would cause the wrapper to be unreachable before the getAndSet(true). That may seem strange, but as |
super.shutdown() is never expected to throw, so some of the changes were not required.
Also removing the redundant unit test.
Rework of PR #12705.