[lib] Optimise thread_call by caching pointer to thread history in the thread
commitcc8b13a00bfe7083ae68755e547a39cd762f2963
authorPaul Jakma <paul.jakma@sun.com>
Tue, 25 Jul 2006 20:40:40 +0000 (25 20:40 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Tue, 25 Jul 2006 20:40:40 +0000 (25 20:40 +0000)
tree9729858115e6862a6bc65a5454f41ce01e059306
parent90c33177f53ae36a8765f5f27bf34a90663806d3
[lib] Optimise thread_call by caching pointer to thread history in the thread

2006-07-25 Paul Jakma <paul.jakma@sun.com>

* thread.h: (struct thread) Add a cache pointer to the struct
  cpu_thread_history, if it is known - saving hash lookup on
  each thread_call.
* thread.c: (thread_call) Cache the pointer to the
          cpu_thread_history, so that future thread_calls of same
          thread can avoid the hash_lookup.
lib/ChangeLog
lib/thread.c
lib/thread.h