This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: cygwin issues
- To: "'green at redhat dot com'" <green at redhat dot com>, "Boehm, Hans" <hans_boehm at hp dot com>, tromey at redhat dot com, Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Subject: RE: cygwin issues
- From: "Boehm, Hans" <hans_boehm at hp dot com>
- Date: Fri, 1 Jun 2001 09:08:32 -0700
- Cc: alk at pobox dot com, java at gcc dot gnu dot org
> From: Anthony Green [mailto:green@redhat.com]
> IIRC, the change was also motivated somewhat by issues
> related to data in
> shared libraries on either Alpha or PPC Linux. Do you
> believe this is a
> non-issue now?
>
AFAIK, this should work fine. The only past problem I'm aware of was that
some of the old heuristics for locating the main data segment failed when
the collector was in a shared library. The collector always walks the list
of shared libraries to find the other data segments. The code to do so
seems to be fairly portable, though I'm not sure the data structure it
relies on is officially viewed as documented.
(It can optionally look at /proc to find writable mappings instead. This
seems to be necessary under Linux if you redirect C/C++ allocation to use
GC_malloc, since some very early allocations use a special malloc in the
dynamic loader, and that memory ends up pointing to memory allocated with
the later malloc. I haven't found a reason to use that feature under Linux
unless malloc itself is redirected.)
Hans