[Bug 8201] Enhancement: thread stack overrun detection