Mercurial > hg > truffle
comparison src/os/solaris/vm/os_solaris.cpp @ 6768:716e6ef4482a
7190089: NMT ON: NMT failed assertion on thread's stack base address
Summary: Solaris only, record stack info to NMT after stack size adjustment was made for primordial threads
Reviewed-by: kvn, acorn, coleenp
author | zgu |
---|---|
date | Mon, 17 Sep 2012 10:20:04 -0400 |
parents | da91efe96a93 |
children | bf2edd3c9b0f |
comparison
equal
deleted
inserted
replaced
6765:15ba0e7a3ff4 | 6768:716e6ef4482a |
---|---|
1486 err.report_and_die(); | 1486 err.report_and_die(); |
1487 } | 1487 } |
1488 | 1488 |
1489 | 1489 |
1490 // First crack at OS-specific initialization, from inside the new thread. | 1490 // First crack at OS-specific initialization, from inside the new thread. |
1491 void os::initialize_thread() { | 1491 void os::initialize_thread(Thread* thr) { |
1492 int r = thr_main() ; | 1492 int r = thr_main() ; |
1493 guarantee (r == 0 || r == 1, "CR6501650 or CR6493689") ; | 1493 guarantee (r == 0 || r == 1, "CR6501650 or CR6493689") ; |
1494 if (r) { | 1494 if (r) { |
1495 JavaThread* jt = (JavaThread *)Thread::current(); | 1495 JavaThread* jt = (JavaThread *)thr; |
1496 assert(jt != NULL,"Sanity check"); | 1496 assert(jt != NULL,"Sanity check"); |
1497 size_t stack_size; | 1497 size_t stack_size; |
1498 address base = jt->stack_base(); | 1498 address base = jt->stack_base(); |
1499 if (Arguments::created_by_java_launcher()) { | 1499 if (Arguments::created_by_java_launcher()) { |
1500 // Use 2MB to allow for Solaris 7 64 bit mode. | 1500 // Use 2MB to allow for Solaris 7 64 bit mode. |