src/jdk.hotspot.agent/linux/native/libsaproc/ps_proc.c
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
child 51203 220c9188db4f
child 56721 01b558efd286
--- a/src/jdk.hotspot.agent/linux/native/libsaproc/ps_proc.c	Wed Mar 28 21:00:09 2018 +0200
+++ b/src/jdk.hotspot.agent/linux/native/libsaproc/ps_proc.c	Wed Mar 28 23:56:08 2018 +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
@@ -373,7 +373,8 @@
 };
 
 // attach to the process. One and only one exposed stuff
-struct ps_prochandle* Pgrab(pid_t pid, char* err_buf, size_t err_buf_len) {
+JNIEXPORT struct ps_prochandle* JNICALL
+Pgrab(pid_t pid, char* err_buf, size_t err_buf_len) {
   struct ps_prochandle* ph = NULL;
   thread_info* thr = NULL;