equal
deleted
inserted
replaced
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 |