-
Notifications
You must be signed in to change notification settings - Fork 489
Conversation
- Adding global namespace scope to DJINNI_ASSERT to prevent conflict with local namespaces. - Add <memory> include to reference shared_ptr. - Use temporary variable in djinni_support.hpp to avoid compiler segfault.
Automated message from Dropbox CLA bot @msjarrett, it looks like you've already signed the Dropbox CLA. Thanks! |
support-lib/jni/djinni_support.hpp
Outdated
const auto & ret = reinterpret_cast<const CppProxyHandle<T> *>(handle)->get(); | ||
// Below line segfaults gcc-4.8. Using a temporary variable hides the bug. | ||
//const auto & ret = reinterpret_cast<const CppProxyHandle<T> *>(handle)->get(); | ||
const CppProxyHandle<T> *temp = reinterpret_cast<const CppProxyHandle<T> *>(handle); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name this "proxy_handle" or something more descriptive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contributions. A few comments on individual lines, but looks good overall.
README.md
Outdated
@@ -437,6 +437,9 @@ Run `make test` to invoke the test suite, found in the test-suite subdirectory. | |||
- Iulia Tamas | |||
- Andrew Twyman | |||
|
|||
## Contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msjarrett can you explain this addition please? I assume you're at Google, so I'd guess this isn't inaccurate, but it's far from complete since we haven't made a habit of calling out all individual people/companies which contribute in the past.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our OSS policy asks us to add the company to the list of contributors, but as you mentioned, there isn't really a complete list in this project. The readme seems like the wrong place, but it'd be even weirder for me to create a new authors file for it.
Any suggestion for a better place for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, yeah, maybe we should think about having an official list. This is the first time someone's raised the issue of a policy like this. Is the policy "you must add to the list" or can it be interpreted as "add to the list if it exists"? It seems like in our current state our "contributors list" is git log
, and I don't know if there are global norms on GitHub about doing otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this coming from this policy: https://opensource.google.com/docs/patching/#how-to-patch
If so, that seems to suggest "If copyright authors are listed in a LICENSE, COPYING, AUTHORS", which wouldn't apply here. We could work on changing that if you'd like, but may not need to delay this diff on it.
It may be that the current list of "Authors" is poorly labeled/named. It's a list of "primary" contributors, not all contributors. We've used it as a way to recognize people who wrote large chunks of the tool, or whole new features. It's not intended to be a claim of copyright, since the whole project is copyrighted by Dropbox, per the CLA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the above link is the basis of the policy. I can see how it could be interpreted either way, but my compliance team is insisting it applies for this particular change.
Is there somewhere I could put this that would be more suitable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, the consensus in the Dropbox open-source team is the opposite. "If copyright authors are listed in a LICENSE, COPYING, AUTHORS or similar file" evaluates to false, so no action is required. The only place our contributors are listed is in git history, which will be attributed when I merge this. Can you possibly put your compliance team in touch with us? Do you know if it's the Authors list which is at issue here, or do they think the addition is required even if it's the first one.
Anyhow, I'd rather not let legal wrangling actually get in the way of a good contribution. I'd be open to possibly adding a CONTRIBUTORS file, with a paragraph at the top explaining it's not intended to be complete (the complete list being the git history), but only present where required for legal purposes. I'd also be open to clarifying/renaming the Authors section in the README to make it clear it's a way of acknowledging "top contributors" not a list of all contributors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swapped the README.md change for a CONTRIBUTORS file. Does this work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the code looks good to me. Merge at this point is only pending the discussion on contribution credit for Google, Inc.
Changed the README.md for a CONTRIBUTORS file. |
@artwyman Does the contributors change address your concern? |
Anybody....? |
Hi @msjarrett. Sorry for the long delay. I didn't intentionally stonewall this. It just came in at around the same time as I got too busy to keep up with Djinni for a while. I don't love the CONTRIBUTORS file, but I'm willing to live with it to keep the lawyers happy. Will merge shortly. |
Please consider the following changes - these fix build issues in our environment, and perhaps will help others.
Thanks!