Skip to content
Snippets Groups Projects
  1. Mar 06, 2013
    • Rainer Orth's avatar
      Use thr_stksegment to determine Solaris stack base · 6632162b
      Rainer Orth authored
      	* os_dep.c [SOLARIS_STACKBOTTOM] (GC_solaris_stack_base): New
      	function.
      	[!BEOS && !AMIGA && !MSWIN32 && !MSWINCE && !OS2 && !NOSYS &&
      	!ECOS] (GC_get_stack_base): Use it.
      	* include/private/gcconfig.h [SPARC && SUNOS5]
      	(SOLARIS_STACKBOTTOM): Define.
      	(STACKBOTTOM, HEURISTIC2): Remove.
      	[I386 && SUNOS5]
      	(SOLARIS_STACKBOTTOM): Define.
      	(STACKBOTTOM): Remove.
      
      From-SVN: r196490
      6632162b
  2. Nov 04, 2012
    • Samuel Thibault's avatar
      configure.ac: Add stanza for *-*-gnu* threads configuration. · b260c71f
      Samuel Thibault authored
      boehm-gc/
      	* configure.ac: Add stanza for *-*-gnu* threads configuration.
      	* configure: Regenerate.
      	* include/gc_config.h.in: Likewise.
      	* dyn_load.c (_GNU_SOURCE): Define for __GNU__.
      	* include/gc_config_macros.h (_REENTRANT, GC_PTHREADS): Define for
      	GC_GNU_THREADS.
      	* include/private/gcconfig.h (DATASTART): Don't define for I386 &&
      	HURD.
      	(SIG_SUSPEND, SIG_THR_RESTART, SEARCH_FOR_DATA_START): Define for
      	I386 && HURD.
      	(UNIX_LIKE, REGISTER_LIBRARIES_EARLY): Define for HURD.
      	* os_dep.c (GC_init_linux_data_start): Handle for HURD.
      	* pthread_support.c (GC_thr_init): Add case for GC_GNU_THREADS.
      	* specific.c: Use for GC_GNU_THREADS.
      	* threadlibs.c: Add case for GC_GNU_THREADS.
      
      From-SVN: r193142
      b260c71f
  3. Mar 21, 2010
    • Dave Korn's avatar
      PR target/42811 (prerequisite) · 045a52c8
      Dave Korn authored
      	PR target/42811 (prerequisite)
      	* include/private/gc_priv.h (struct roots) [CYGWIN32]: Don't
      	declare r_next member on Cygwin as on other windows hosts.
      	(LOG_RT_SIZE) [CYGWIN32]: Don't define likewise.
      	(RT_SIZE) [CYGWIN32]: Likewise.
      	(struct _GC_arrays) [CYGWIN32]: Do declare _heap_bases[] member
      	likewise.
      	(GC_heap_bases) [CYGWIN32]: Do define likewise.
      	(struct _SYSTEM_INFO) [CYGWIN32]: Do forward-declare likewise.
      	(GC_sysinfo) [CYGWIN32]: Do declare extern likewise.
      	(GC_n_heap_bases) [CYGWIN32]: Likewise.
      	(GC_is_tmp_root) [CYGWIN32]: Do prototype likewise.
      	* include/private/gcconfig.h (GC_win32_get_mem) [CYGWIN32]: Likewise.
      	(GET_MEM) [CYGWIN32]: Do define likewise.
      	* boehm-gc/ptr_chck.c (GC_is_visible) [CYGWIN32]: Do handle dynamic
      	registration likewise.
      	* boehm-gc/os_dep.c (GC_setpagesize) [CYGWIN32]: Do define likewise.
      	(GC_no_win32_dlls) [CYGWIN32]: Define as constant false, unlike
      	other windows hosts.
      	(GC_sysinfo) [CYGWIN32]: Define as on other windows hosts.
      	(GC_n_heap_bases) [CYGWIN32]: Likewise.
      	(GLOBAL_ALLOC_TEST) [CYGWIN32]: Likewise.
      	(GC_win32_get_mem) [CYGWIN32]: Likewise, but wrapping GC_unix_get_mem
      	rather than GlobalAlloc/VirtualAlloc.
      	(GC_win32_free_heap) [CYGWIN32]: Likewise, but wrapping free instead
      	of GlobalFree (even though the function body is optimised away).
      	* boehm-gc/mark_rts.c (add_roots_to_index) [CYGWIN32]: Define as on
      	other windows hosts.
      	(GC_add_roots_inner) [CYGWIN32]: Avoid overlapping or adjacent
      	intervals likewise.
      	(GC_clear_roots) [CYGWIN32]: Clear GC_root_index[] likewise.
      	(GC_rebuild_root_index) [CYGWIN32]: Define as on other windows hosts.
      	(GC_remove_tmp_roots) [CYGWIN32]: Call it likewise.
      	(GC_remove_roots) [CYGWIN32]: Don't define, as on other windows hosts.
      	(GC_is_tmp_root) [CYGWIN32]: Define, as on other windows hosts.
      	(GC_cond_register_dynamic_libraries) [CYGWIN32]: Handle temporary
      	roots and dynamic registration likewise.
      	* boehm-gc/dyn_load.c (GC_has_static_roots) [CYGWIN32]: Define as on
      	other windows hosts.
      	(GC_register_has_static_roots_callback) [CYGWIN32]: Likewise.
      	(GC_cond_add_roots) [CYGWIN32]: Likewise.
      	(GC_register_main_static_data) [CYGWIN32]: Define to always return
      	false, as on MSWINCE
      	(HAVE_REGISTER_MAIN_STATIC_DATA) [CYGWIN32]: Define as on other
      	windows hosts.
      	(GC_warn_fb) [CYGWIN32]: Likewise.
      	(GC_disallow_ignore_fb) [CYGWIN32]: Likewise.
      	(GC_ignore_fb_mb) [CYGWIN32]: Likewise.
      	(GC_ignore_fb) [CYGWIN32]: Likewise.
      	(is_frame_buffer) [CYGWIN32]: Likewise.
      	(GC_dump_meminfo) [CYGWIN32]: Likewise.
      	(GC_wnt) [CYGWIN32]: Define to constant true.
      	(GC_register_dynamic_libraries) [CYGWIN32]: Define as on other
      	windows hosts.
      
      From-SVN: r157604
      045a52c8
  4. Nov 30, 2009
  5. Jan 19, 2007
    • Andreas Tobler's avatar
      os_dep.c (defined(MPROTECT_VDB) && defined(DARWIN)): Moved recently added... · d88c6456
      Andreas Tobler authored
      os_dep.c (defined(MPROTECT_VDB) && defined(DARWIN)): Moved recently added defines to include/private/gc_priv.h
      
      2007-01-19  Andreas Tobler  <a.tobler@schweiz.org>
      
      	* os_dep.c (defined(MPROTECT_VDB) && defined(DARWIN)): Moved recently
      	added defines to include/private/gc_priv.h
      	* darwin_stop_world.c: Removed the above defines.
      	(catch_exception_raise): Added THREAD_FLD in exc_state for POWERPC too.
      	* include/private/gc_priv.h: Moved definitions from darwin_stop_world.c
      	and os_dep.c to here. Fixed THREAD definition fixes for ppc64.
      
      From-SVN: r120977
      d88c6456
  6. Jan 17, 2007
  7. Jan 16, 2007
  8. Jan 15, 2007
  9. Jan 11, 2007
    • Andreas Tobler's avatar
      configure.ac: Replaced HAS_I386_THREAD_STATE_* with HAS_X86_THREAD_STATE32_* and... · 583cb3d3
      Andreas Tobler authored
      2007-01-11  Andreas Tobler  <a.tobler@schweiz.org>
      
      	* configure.ac: Replaced HAS_I386_THREAD_STATE_* with
      	HAS_X86_THREAD_STATE32_* and HAS_X86_THREAD_STATE64_* respectively.
      	* configure: Regenerated.
      	* include/private/gcconfig.h (DARWIN): Added X86_64 define for Darwin.
      	Added base definitions for the X86_64 Darwin port.
      	* include/private/gc_priv.h: Added definitions for Darwin MACH thread
      	operations. Moved existing THREAD_STATE info from darwin_stop_world.c.
      	* darwin_stop_world.c: Removed THREAD_STATE info. Added
      	HAS_X86_THREAD_STATE64___RAX. And replaced HAS_I386_THREAD_STATE___EAX
      	with HAS_X86_THREAD_STATE32___EAX.
      	(GC_push_all_stacks): Use GC_MACH_THREAD_STATE_COUNT. Add code for
      	X86_64 Darwin.
      	* dyn_load.c (GC_dyld_name_for_hdr): Use GC_MACH_HEADER.
      	(GC_dyld_image_add): Use GC_MACH_HEADER and GC_MACH_SECTION.
      	Distinguish between getsectbynamefromheader_64 and
      	getsectbynamefromheader.
      	(GC_dyld_image_remove): Likewise.
      	* os_dep.c (GC_dirty_init): Use GC_MACH_THREAD_STATE.
      	(catch_exception_raise): Introduce exception information for I386 and
      	X86_64 Darwin. Add X86_64 for exc_state.faultvaddr.
      
      From-SVN: r120684
      583cb3d3
  10. Sep 21, 2006
    • Sandro Tolaini's avatar
      os_dep.c: Port to Darwin/i386 · de7a014d
      Sandro Tolaini authored
      2006-09-21  Sandro Tolaini  <tolaini@libero.it>
      
      	* os_dep.c: Port to Darwin/i386
      	* darwin_stop_world.c: Likewise
      	* include/private/gcconfig.h: Likewise
      
      From-SVN: r117126
      de7a014d
  11. Jun 20, 2006
  12. Jan 25, 2006
  13. Jun 15, 2005
    • Andreas Tobler's avatar
      os_dep.c: Add FreeBSD/PowerPC bits. · 9af9e7fa
      Andreas Tobler authored
      2005-06-15  Andreas Tobler  <a.tobler@schweiz.ch>
      
      	* os_dep.c: Add FreeBSD/PowerPC bits.
      	(GC_SysVGetDataStart): Likewise.
      	* include/private/gcconfig.h: Likewise.
      
      From-SVN: r100997
      9af9e7fa
  14. Apr 19, 2005
  15. Apr 17, 2005
    • David S. Miller's avatar
      gcconfig.h (sparc-linux): Use LINUX_STACKBOTTOM. · 22d97ada
      David S. Miller authored
      2005-04-17  David S. Miller  <davem@davemloft.net>
      
      	* include/private/gcconfig.h (sparc-linux): Use LINUX_STACKBOTTOM.
      	* os_dep.c (GC_linux_stack_base): Check for bug present in some
      	Sparc glibc variants where __libc_stack_end is erroneously set
      	to "1".  Fallback to procfs code in that case.
      
      From-SVN: r98303
      22d97ada
  16. Aug 13, 2004
    • Bryce McKinlay's avatar
      configure.in (GCINCS): Don't use "boehm-cflags". · 4109fe85
      Bryce McKinlay authored
      libjava:
      2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
      
      	* configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
      	boehm-gc's include dirs.
      	* configure: Rebuilt.
      	* include/boehm-gc.h: Include gc_config.h.
      
      boehm-gc:
      2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
      
      	* configure.ac (gc_cflags): Add -Iinclude.
      	(AC_CONFIG_HEADERS): New. Configure gc_config.h header.
      	Don't write DEFS to boehm-cflags file.
      	* configure: Rebuilt.
      	* gcj_mlc.c: Check #ifdef GC_GCJ_SUPPORT after including headers.
      	* specific.c: Check #ifdef GC_LINUX_THREADS after including headers.
      	* include/gc_config_macros.h: Remove backward-compatibility
      	redefinitions of GC_ names.
      	* include/gc.h: Include <gc_config.h>.
      
      2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
      
      	Import Boehm GC version 6.3.
      
      From-SVN: r85972
      4109fe85
  17. Jul 07, 2004
  18. Sep 22, 2003
  19. Jul 29, 2003
  20. Jul 28, 2003
    • Jeff Sturm's avatar
      Import GC 6.3alpha1. · 30c3de1f
      Jeff Sturm authored
      	* BCC_MAKEFILE: Merge with GC 6.3alpha1 release.
      	* ChangeLog: Likewise.
      	* Makefile.am: Likewise.
      	* Makefile.direct: Likewise.
      	* Makefile.dj: Likewise.
      	* allchblk.c: Likewise.
      	* alloc.c: Likewise.
      	* backgraph.c: Likewise.
      	* configure.host: Likewise.
      	* configure.in: Likewise.
      	* dbg_mlc.c: Likewise.
      	* dyn_load.c: Likewise.
      	* finalize.c: Likewise.
      	* gc_cpp.cc: Likewise.
      	* gc_dlopen.c: Likewise.
      	* gcj_mlc.c: Likewise.
      	* if_mach.c: Likewise.
      	* mach_dep.c: Likewise.
      	* malloc.c: Likewise.
      	* mallocx.c: Likewise.
      	* mark.c: Likewise.
      	* mark_rts.c: Likewise.
      	* misc.c: Likewise.
      	* os_dep.c: Likewise.
      	* ptr_chck.c: Likewise.
      	* reclaim.c: Likewise.
      	* solaris_pthreads.c: Likewise.
      	* solaris_threads.c: Likewise.
      	* sparc_mach_dep.S: Likewise.
      	* threadlibs.c: Likewise.
      	* typd_mlc.c: Likewise.
      	* version.h: Likewise.
      	* win32_threads.c: Likewise.
      	* Mac_files/MacOS_Test_config.h: Likewise.
      	* Mac_files/MacOS_config.h: Likewise.
      	* cord/cordbscs.c: Likewise.
      	* cord/cordprnt.c: Likewise.
      	* cord/de_win.c: Likewise.
      	* doc/README: Likewise.
      	* doc/README.MacOSX: Likewise.
      	* doc/README.changes: Likewise.
      	* doc/README.environment: Likewise.
      	* doc/README.ews4800: Likewise.
      	* doc/README.linux: Likewise.
      	* doc/README.macros: Likewise.
      	* doc/README.win32: Likewise.
      	* doc/debugging.html: Likewise.
      	* doc/gcdescr.html: Likewise.
      	* doc/tree.html: Likewise.
      	* include/Makefile.in: Likewise.
      	* include/gc.h: Likewise.
      	* include/gc_cpp.h: Likewise.
      	* include/gc_local_alloc.h: Likewise.
      	* include/gc_mark.h: Likewise.
      	* include/gc_pthread_redirects.h: Likewise.
      	* include/gc_typed.h: Likewise.
      	* include/new_gc_alloc.h: Likewise.
      	* include/private/dbg_mlc.h: Likewise.
      	* include/private/gc_hdrs.h: Likewise.
      	* include/private/gc_locks.h: Likewise.
      	* include/private/gc_pmark.h: Likewise.
      	* include/private/gc_priv.h: Likewise.
      	* include/private/gcconfig.h: Likewise.
      	* include/private/solaris_threads.h: Likewise.
      	* include/private/specific.h: Likewise.
      	* tests/test.c: Likewise.
      	* tests/test_cpp.cc: Likewise.
      
      	* configure: Rebuild.
      	* Makefile.in: Rebuild.
      
      	* mips_sgi_mach_dep.s: Add.
      
      	* alpha_mach_dep.s: Remove.
      	* irix_threads.c: Remove.
      	* linux_threads.c: Remove.
      	* mips_sgi_mach_dep.S: Remove.
      	* missing: Remove.
      	* powerpc_macosx_mach_dep.s: Remove.
      	* doc/Makefile.am: Remove.
      	* doc/Makefile.in: Remove.
      
      From-SVN: r69880
      30c3de1f
  21. Jul 19, 2002
    • Bo Thorsen's avatar
      gcconfig.h: Add x86-64 definitions. · 48528b67
      Bo Thorsen authored
      2002-07-18  Bo Thorsen  <bo@suse.de>
      
      	* include/private/gcconfig.h: Add x86-64 definitions.
      	* os_dep.c: Add x86-64 support.
      	* configure.in: Likewise.
      	* configure: Regenerate.
      
      Approved by Hans Boehm.
      
      From-SVN: r55584
      48528b67
  22. Mar 27, 2002
  23. Mar 22, 2002
    • Loren J. Rittle's avatar
      gcconfig.h: Add unified test for FreeBSD. · c0561434
      Loren J. Rittle authored
      	* include/private/gcconfig.h: Add unified test for FreeBSD.
      	Support FreeBSD/alpha.
      	* os_dep.c: Do not include <machine/trap.h> unless available.
      	(GC_freebsd_stack_base): Fix types.
      
      From-SVN: r51159
      c0561434
  24. Mar 12, 2002
    • Adam Megacz's avatar
      dyn_load.c: Renamed GC_win32s to GC_no_win32_dlls. · 916c46b5
      Adam Megacz authored
      2002-03-12  Adam Megacz  <adam@xwt.org>
      
              * dyn_load.c: Renamed GC_win32s to GC_no_win32_dlls.
              * misc.c: Renamed GC_is_win32s() to GC_no_win32_dlls
              * os_dep.c: Renamed GC_win32s to GC_no_win32_dlls and
              statically initialized it to TRUE if compiling with GCC.
              * win32_threads.c (thread_start): We no longer use SEH if
              compiling with GCC.
              * mark.c (GC_mark_some): We no longer use SEH if
              compiling with GCC.
      
      From-SVN: r50671
      916c46b5
  25. Feb 12, 2002
  26. Feb 09, 2002
  27. Oct 16, 2001
  28. Aug 18, 2001
  29. May 21, 2001
    • Bryce McKinlay's avatar
      Imported version version 6.0alpha7. · 9110a741
      Bryce McKinlay authored
      	* README, README.Mac, README.OS2, README.QUICK, README.alpha,
      	README.amiga, README.debugging, README.dj, README.hp, README.linux,
      	README.rs6000, README.sgi, README.solaris2, README.uts,
      	README.win32, SCoptions.amiga, backptr.h, barrett_diagram,
      	dbg_mlc.h, gc.h, gc.man, gc_alloc.h, gc_cpp.h, gc_hdrs.h, gc_mark.h,
      	gc_priv.h, gc_private.h, gc_typed.h, gcconfig.h,
      	hpux_irix_threads.c, makefile.depend, nursery.c,
      	solaris_threads.h, test.c, test_cpp.cc, weakpointer.h, cord/README,
      	cord/SCOPTIONS.amiga, cord/SMakefile.amiga, cord/cord.h,
      	cord/ec.h, cord/gc.h, cord/private/cord_pos.h, include/backptr.h,
      	include/gc_copy_descr.h, include/gc_nursery.h: Remove obsolete/moved
      	files.
      
      From-SVN: r42379
      9110a741
  30. Apr 05, 2001
    • Hans Boehm's avatar
      finalize.c: - Accomodate finalization requests for static objects. · 41029b88
      Hans Boehm authored
      2001-04-04  Hans Boehm  <hans_boehm@hp.com>
      
      	* finalize.c:
      	- Accomodate finalization requests for static objects.
      	  (Will be required by hash synchronization.  May be needed
      	  in some configurations now.)
      
      	* gc_priv.h:
      	- Define MIN_WORDS.  All allocation requests are rounded
      	  up to at least this size.  Removes a subtle assumption that
      	  Java objects have a 2 word header.
      
      	* gcconfig.h:
      	- Adjust Linux/IA64 configuration for non-ancient kernels.
      	  (Necessary fix for IA64.)
      
      	* linux_threads.c:
      	- Fix syntax error in currently unused code.  Will be needed
      	  for Linux/PA-RISC.
      
      	* malloc.c:
      	- Handle MIN_WORDS.
      
      	* misc.c:
      	- Handle MIN_WORDS.
      	- Change stack cleaning code to typically clear about one tenth
      	  the memory it used to in the threads configuration.  Occasionally
      	  still clear more.  (This is really a fix for a long-standing
      	  and fairly significant performance bug with threads.)
      
      	* os_dep.c:
      	- Fix the code for finding the beginning of the data segment under
      	  Linux.  I believe this is necessary for some IA64 Linux
      	  distributions.  It will also helo other platforms, though those
      	  may additionally require a gcconfig.h adjustment.  (This basically
      	  works around the absence of a data_start or __data_start
      	  definition in glibc.)
      
      	* test.c:
      	- Handle rounding due to MIN_WORDS.
      
      From-SVN: r41102
      41029b88
  31. Jun 19, 2000
  32. May 10, 2000
    • Bryce McKinlay's avatar
      Imported 5.0 release version. · 402823c4
      Bryce McKinlay authored
      2000-05-11  Bryce McKinlay  <bryce@albatross.co.nz>
      
              Imported 5.0 release version.
              * acinclude.m4: Increment version to 5.0.
      
      From-SVN: r33832
      402823c4
  33. May 07, 2000
    • Bryce McKinlay's avatar
      Imported version 5.0alpha7. · 9444af72
      Bryce McKinlay authored
      2000-05-07  Bryce McKinlay  <bryce@albatross.co.nz>
      
      	Imported version 5.0alpha7.
              * acinclude.m4: Update version to 5.0a7.
      
      From-SVN: r33750
      9444af72
  34. Apr 27, 2000
    • Jakub Jelinek's avatar
      <<<<<<< ChangeLog · 70635f1e
      Jakub Jelinek authored
      2000-04-26  Jakub Jelinek  <jakub@redhat.com>
      
      	* gcconfig.h (SPARC): Define ALIGNMENT to 8 for 64bit SPARC.
      	(SPARC/LINUX): Use GC_SysVGetDataStart instead of LINUX_DATA_START
      	- sparc glibc does not provide it.
      	(SAVE_CALL_CHAIN, ASM_CLEAR_CODE): Define on sparc*-linux*.
      	Make STACKBOTTOM depend on the wordsize.
      	* os_dep.c (GC_SysVGetDataStart): Compile in on sparc*-linux*.
      	(struct frame): Declare on sparc*-linux*.
      	(GC_save_callers): Bias the frame pointers if needed (sparc64).
      	* mach_dep.c (GC_save_regs_in_stack): Optimize on sparc32.
      	Implement on sparc64.
      	(GC_clear_stack_inner): Implement on sparc64.
      	* gc_priv.h (GC_test_and_set): Implement for sparc.
      	* linux_threads.c (GC_suspend_handler, GC_push_all_stacks): Use
      
      From-SVN: r33452
      70635f1e
  35. Apr 19, 2000
    • Bryce McKinlay's avatar
      Imported version version 5.0alpha6. · 93002327
      Bryce McKinlay authored
      	* acinclude.m4: Bump version to 5.0a6.
      	* configure.in: Don't use alpha_mach_dep.s.
      	* include/private/config.h, irix_threads.c gc_watcom.asm: Delete
      	obsolete files.
      
      From-SVN: r33251
      93002327
  36. Dec 20, 1999
  37. Dec 12, 1999
  38. Nov 04, 1999
    • Tom Tromey's avatar
      configure: Rebuilt. · 81976f93
      Tom Tromey authored
      	* configure: Rebuilt.
      	* configure.in: Removed qt threads case.
      	* dyn_load.c: Don't mention QUICK_THREADS.
      	* os_dep.c: Don't mention QUICK_THREADS.
      	* misc.c: Don't mention QUICK_THREADS.
      	* gcconfig.h: Don't mention QUICK_THREADS.
      	* gc_priv.h: Removed QUICK_THREADS code.
      	* quick_threads.c: Removed.
      
      From-SVN: r30394
      81976f93
  39. Nov 01, 1999
  40. Jun 21, 1999
    • Tom Tromey's avatar
      Alpha patch from Jeff Sturm: · 139386ba
      Tom Tromey authored
      	* os_dep.c (GC_init_linuxalpha): New function.
      	* misc.c: Initialize for alpha linux.
      	* gc_priv.h (GC_test_and_set): Define for alpha.
      	* config.h: Don't assume __data_start on alpha.
      
      From-SVN: r27670
      139386ba
Loading