RFR (2nd round) 8071627: Code refactoring to override == operator of Symbol*
john.r.rose at oracle.com
Thu May 28 08:26:29 UTC 2015
On May 27, 2015, at 10:02 AM, Coleen Phillimore <coleen.phillimore at oracle.com> wrote:
> One note about methodHandles. Since they have nontrivial copy constructors, they should be passed as const references to prevent copy constructor calls.
I would love to have a robust enough C++ linter to be able to issue and check for rules like, "this type should not implicitly call its copy constructor". I know some of those "gotchas" can be defended against using new C++11 features ("explicit"), but by no means all of them. Linting for Symbol*::operator== is one of them that will never (?) be supported by the core language.
More information about the hotspot-dev