jdk/src/java.base/macosx/native/libjli/java_md_macosx.c
changeset 29742 b73f38796859
parent 28771 2885fb2e1002
child 30467 075f4f160f19
equal deleted inserted replaced
29741:da2598cb299e 29742:b73f38796859
   850     }
   850     }
   851 
   851 
   852     if (pthread_create(&tid, &attr, (void *(*)(void*))continuation, (void*)args) == 0) {
   852     if (pthread_create(&tid, &attr, (void *(*)(void*))continuation, (void*)args) == 0) {
   853       void * tmp;
   853       void * tmp;
   854       pthread_join(tid, &tmp);
   854       pthread_join(tid, &tmp);
   855       rslt = (int)tmp;
   855       rslt = (int)(intptr_t)tmp;
   856     } else {
   856     } else {
   857      /*
   857      /*
   858       * Continue execution in current thread if for some reason (e.g. out of
   858       * Continue execution in current thread if for some reason (e.g. out of
   859       * memory/LWP)  a new thread can't be created. This will likely fail
   859       * memory/LWP)  a new thread can't be created. This will likely fail
   860       * later in continuation as JNI_CreateJavaVM needs to create quite a
   860       * later in continuation as JNI_CreateJavaVM needs to create quite a