[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modulo function



kenkwok <kenkwok@cmu.edu> writes:
> "Randall C. O'Reilly" wrote:
> I think something's broken becos I looked at processes in bp++ and cs++
> and these also have cntr pointing at NULL.  Perhaps there are problems
> with GetOff() which SchedProcess::InitLinks calls?
> In the meantime, what's the proper way to manually set the cntr pointer?
> taBase::SetPointer((TAPtr*)&cntr, &(super_proc->epoch)) doesn't seem to do
> it.

this is a bug in outputting the value of this pointer in css -- it is
in fact set and non-null, but the printout of it shows NULL!  I just
fixed this.  To convince yourself of this, try 'print
.processes.EpochProcess.cntr' and you'll see the correct values..

So, it is in fact set..  

In any case, you wouldn't want to do SetPointer on this particular guy
because the rest of the code isn't expecting this extra ref count --
the standard code just does cntr = ptr...

				- Randy