Mercurial > hg > graal-jvmci-8
comparison agent/src/os/bsd/libproc_impl.h @ 8058:2394a89e89f4
8008088: SA can hang the VM
Reviewed-by: mgronlun, sla, dholmes
author | rbackman |
---|---|
date | Wed, 13 Feb 2013 09:46:19 +0100 |
parents | f08d439fab8c |
children | 39432a1cefdd |
comparison
equal
deleted
inserted
replaced
8057:7adae9244bc8 | 8058:2394a89e89f4 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
105 }; | 105 }; |
106 | 106 |
107 int pathmap_open(const char* name); | 107 int pathmap_open(const char* name); |
108 | 108 |
109 void print_debug(const char* format,...); | 109 void print_debug(const char* format,...); |
110 void print_error(const char* format,...); | |
110 bool is_debug(); | 111 bool is_debug(); |
111 | 112 |
112 typedef bool (*thread_info_callback)(struct ps_prochandle* ph, pthread_t pid, lwpid_t lwpid); | 113 typedef bool (*thread_info_callback)(struct ps_prochandle* ph, pthread_t pid, lwpid_t lwpid); |
113 | 114 |
114 // reads thread info using libthread_db and calls above callback for each thread | 115 // reads thread info using libthread_db and calls above callback for each thread |