--- old/src/java.base/unix/native/libjli/java_md_solinux.c 2018-12-10 17:07:16.646879414 +0300 +++ new/src/java.base/unix/native/libjli/java_md_solinux.c 2018-12-10 17:07:16.474876455 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -744,7 +744,7 @@ } pthread_attr_setguardsize(&attr, 0); // no pthread guard page on java threads - if (pthread_create(&tid, &attr, (void *(*)(void*))continuation, (void*)args) == 0) { + if (pthread_create(&tid, &attr, (void *(*)(void*))(void*)continuation, (void*)args) == 0) { void * tmp; pthread_join(tid, &tmp); rslt = (int)(intptr_t)tmp; @@ -762,7 +762,7 @@ #else /* __solaris__ */ thread_t tid; long flags = 0; - if (thr_create(NULL, stack_size, (void *(*)(void *))continuation, args, flags, &tid) == 0) { + if (thr_create(NULL, stack_size, (void *(*)(void *))(void*)continuation, args, flags, &tid) == 0) { void * tmp; thr_join(tid, NULL, &tmp); rslt = (int)(intptr_t)tmp;