Mark Kettenis <mark.kette...@xs4all.nl> wrote:

> It is still a bit scary to have cpu_hatch() call _mcount() but I guess
> adding __attribute__((no_profile)) to all of the functions called by
> cpu_hatch() isn't really workable either.

It now immediately returns.

> > +   int gmon_state = gmoninit;
> 
> No variable declarations in the middle of functions please.

Yep.  Put it at the top.

> > +   gmoninit = 0;
> > +   membar_producer();
> 
> Why are you messing with memory barriers here?

I have asked the same question.  This has potential to make things worse.



Reply via email to