[PATCH v2] Refactor to avoid nonnull checks on "this" pointer.

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Apr 1 15:10:00 GMT 2016

On Apr  1 09:34, Peter Foley wrote:
> On Fri, Apr 1, 2016 at 9:12 AM, Yaakov Selkowitz <yselkowitz@cygwin.com> wrote:
> > See https://gcc.gnu.org/gcc-6/porting_to.html, section named "Optimizations
> > remove null pointer checks for this".
> If there's an better way to do this, I'm all ears.

As I mentioned in my first reply, I'd prefer if the callers check the
pointer explicitly.  Changing the methods to static methods seems ...
wrong.  Ugly, if you don't mind me saying so.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20160401/1a4a3285/attachment.sig>

More information about the Cygwin-patches mailing list