src/os/solaris/vm/os_solaris.cpp

changeset 4079
716e6ef4482a
parent 4037
da91efe96a93
child 4136
bf2edd3c9b0f
equal deleted inserted replaced
4076:15ba0e7a3ff4 4079: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.

mercurial