aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc/include
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2006-04-24 13:40:21 +0000
committerAndrew Haley <aph@gcc.gnu.org>2006-04-24 13:40:21 +0000
commit5204d06d82d16eb89d871797cf4ff082f4fa9526 (patch)
treea8074b9a8a67aadac33d1495f247696c5b362985 /boehm-gc/include
parentd84b37b08adcd3f280d1711317488ad7824e4697 (diff)
downloadgcc-5204d06d82d16eb89d871797cf4ff082f4fa9526.zip
gcc-5204d06d82d16eb89d871797cf4ff082f4fa9526.tar.gz
gcc-5204d06d82d16eb89d871797cf4ff082f4fa9526.tar.bz2
dyn_load.c (GC_has_static_roots): Declare.
2006-03-07 Andrew Haley <aph@redhat.com> * dyn_load.c (GC_has_static_roots): Declare. (GC_register_dynlib_callback): Call GC_has_static_roots. From-SVN: r113223
Diffstat (limited to 'boehm-gc/include')
-rw-r--r--boehm-gc/include/gc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/boehm-gc/include/gc.h b/boehm-gc/include/gc.h
index cfc8658..3507db7 100644
--- a/boehm-gc/include/gc.h
+++ b/boehm-gc/include/gc.h
@@ -925,6 +925,15 @@ extern void GC_thr_init GC_PROTO((void));/* Needed for Solaris/X86 */
#endif /* THREADS && !SRC_M3 */
+/* Register a callback to control the scanning of dynamic libraries.
+ When the GC scans the static data of a dynamic library, it will
+ first call a user-supplied routine with filename of the library and
+ the address and length of the memory region. This routine should
+ return nonzero if that region should be scanned. */
+GC_API void GC_register_has_static_roots_callback
+ (int (*callback)(const char *, void *, size_t));
+
+
#if defined(GC_WIN32_THREADS) && !defined(__CYGWIN32__) && !defined(__CYGWIN__)
# include <windows.h>