mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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:
parent
e91b6584eb
commit
afd497eecc
11 changed files with 30 additions and 17 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue