Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Mar 2008 17:57:09 +0100
From:      "Danny Pansters" <danny@ricin.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: +rtfree: 0xffffff0003635780 has 1 refs
Message-ID:  <200803191757.09256.danny@ricin.com>
In-Reply-To: <200803190928.29081.jhb@freebsd.org>
References:  <000e01c8885f$d78bc070$26714dd1@syix.com> <200803182309.46931.danny@ricin.com> <200803190928.29081.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 19 March 2008 14:28:28 John Baldwin wrote:
> On Tuesday 18 March 2008 06:09:46 pm Danny Pansters wrote:
> > On Monday 17 March 2008 20:55:01 Stefan Lambrev wrote:
> > > Greetings Dave,
> > >
> > > Dave Overton wrote:
> > > > I am new to the AMD64 stable branch, so forgive me if this has been
> > > > beat to death, but I can't find why this message keeps occurring over
> > > > and over all day.  FreeBSD 7.0 Stable on AMD x2.  It works (or seems
> > > > to) fine.
> > > >
> > > > +rtfree: 0xffffff0003635780 has 1 refs
> > >
> > > check google for rtfree() used when RTFREE() needed .. or something
> > > like this :)
> > > Those messages are annoying but harmless.
> >
> > Harmless perhaps, but it still should be fixed, so if you don't see any
> > similar PR already I'd suggest sending one.
> >
> > Has to do with certain variables being of one type but used as if it were
> > another (e.g. int vs long) which on 64bit platforms as a band-aid
> > gets "MSB-filled" with 0xf's to the proper size. So such warning pretty
> > much means "fix your code".
>
> No.  The value printed is a pointer and kernel pointers on amd64 are in the
> upper range of the address space.  The warning above has to do with code
> that calls rtfree() vs. the RTFREE() macro.  The macro inlines the the
> common case (refs > 1) so in theory is cheaper than always doing a function
> call.

I stand corrected!

Dan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803191757.09256.danny>