--- old/src/jdk.hotspot.agent/linux/native/libsaproc/ps_core.c 2018-03-28 12:28:10.054048875 +0200 +++ new/src/jdk.hotspot.agent/linux/native/libsaproc/ps_core.c 2018-03-28 12:28:09.842048877 +0200 @@ -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;