src/java.base/unix/native/libjli/java_md_solinux.c

Print this page

        

@@ -886,11 +886,11 @@
     }
 
     if (pthread_create(&tid, &attr, (void *(*)(void*))continuation, (void*)args) == 0) {
       void * tmp;
       pthread_join(tid, &tmp);
-      rslt = (int)tmp;
+      rslt = (intptr_t)tmp;
     } else {
      /*
       * Continue execution in current thread if for some reason (e.g. out of
       * memory/LWP)  a new thread can't be created. This will likely fail
       * later in continuation as JNI_CreateJavaVM needs to create quite a