--- old/src/jdk.hotspot.agent/linux/native/libsaproc/ps_core.c 2018-03-23 14:24:45.877157812 +0100 +++ new/src/jdk.hotspot.agent/linux/native/libsaproc/ps_core.c 2018-03-23 14:24:45.637157813 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -1008,7 +1008,8 @@ } // the one and only one exposed stuff from this file -struct ps_prochandle* Pgrab_core(const char* exec_file, const char* core_file) { +JNIEXPORT struct ps_prochandle* JNICALL +Pgrab_core(const char* exec_file, const char* core_file) { ELF_EHDR core_ehdr; ELF_EHDR exec_ehdr; ELF_EHDR lib_ehdr;