7190089: NMT ON: NMT failed assertion on thread's stack base address

Solaris only, record stack info to NMT after stack size adjustment was made for primordial threads

Reviewed-by: kvn, acorn, coleenp
This commit is contained in:
Zhengyu Gu 2012-09-17 10:20:04 -04:00
parent e91b6584eb
commit afd497eecc
11 changed files with 30 additions and 17 deletions

View file

@ -1488,11 +1488,11 @@ void _handle_uncaught_cxx_exception() {
// First crack at OS-specific initialization, from inside the new thread.
void os::initialize_thread() {
void os::initialize_thread(Thread* thr) {
int r = thr_main() ;
guarantee (r == 0 || r == 1, "CR6501650 or CR6493689") ;
if (r) {
JavaThread* jt = (JavaThread *)Thread::current();
JavaThread* jt = (JavaThread *)thr;
assert(jt != NULL,"Sanity check");
size_t stack_size;
address base = jt->stack_base();