The internal thread counter, ActiveThreadCount, is getting incremented twice for
the primordial thread. This is not thought to currently cause problems in the code
that uses the variable (sysThreadEnumerate() and sysThreadEnumerateOver())
because they terminate on either reaching the number *or* finding the nil thread
queue terminator. The miscount is obvious in the source of sysThreadBootstrap() in threads_md.c.
the primordial thread. This is not thought to currently cause problems in the code
that uses the variable (sysThreadEnumerate() and sysThreadEnumerateOver())
because they terminate on either reaching the number *or* finding the nil thread
queue terminator. The miscount is obvious in the source of sysThreadBootstrap() in threads_md.c.