[Gc] Re: boehm-gc merge for GCC

Matthias Klose doko at ubuntu.com
Fri Nov 16 17:53:43 PST 2012

[CCing java-patches and Andrew too]

I'm currently striving for something for the 4.8 release. Not sure if relying on
an external library is the right thing to do for the 4.8 release.

Currently boehm-gc is linked to libgcj as a convenience library. I remember that
trying to link boehm-gc as a shared library did cause some performance
regressions (although I think I did only check this in the early 4.x times).

Please could you elaborate on the API changes in gcj?

There is also a second user of boehm-gc in GCC, when you configure with
--enable-objc-gc. I didn't check yet which changes are needed for that.

Would it be possible to create a branch in the GCC svn, and then prepare the
merge, and libjava and libobjc changes there?


Am 16.11.2012 22:14, schrieb NightStrike:
> I think changing the gc to be like gmp/mpfr/mpc requires buy-in from
> Andrew Haley, if I'm not mistaken.
> Kai, is my statement correct?
> On Fri, Nov 16, 2012 at 3:54 PM, Ivan Maidanski <ivmai at mail.ru> wrote:
>> Hi NightStrike,
>> In my understanding, I've done bdwgc ready for gcj but some gcj files should
>> be changed to reflect the changes in bdwgc API (e.g., thread registration).
>> There is a problem is thread suspend/resume - bdwgc does not have such API
>> but OTOH suspend/resume is deprecated part of Java threads. Regarding
>> integration bdwgc into gcj, I think it's better to have bdwgc as a separate
>> module (similar to libmpfr).
>> I have an intention to do the work but this requires significant efforts to
>> make it perfect,  so I gave up due to lack of time.
>> Any volunteers?
>> Regards,
>> Ivan
>> 16 11 2012 15:28:34 from NightStrike <nightstrike at gmail.com>:
>> Are there any plans to get current boehm-gc into gcc? Ivan, can you do this?
>> On Fri, Nov 16, 2012 at 3:21 PM, Ivan Maidanski <ivmai at mail.ru> wrote:
>>> Hi Matthias,
>>> I think yes, all patches (may be with some modifications) from Kai are in
>>> master.
>>> I myself also reviewed difference between gcc/boehm-gc
>>> (https://github.com/ivmai/bdwgc/tree/gcc_boehmgc) and gc6.8.
>>> Regards,
>>> Ivan
>>> 16 11 2012 18:22:47 Matthias Klose <doko at ubuntu.com>:
>>> Hi Ivan,
>>> in
>>> https://old.nabble.com/RFC%3A-Updating-boehm-gc-to-verion-7.2-(alpha-5)-td31293737.html
>>> Kai said that he did some patches upstream / to you about changes
>>> collected
>>> in
>>> the GCC copy of boehm-gc. Are these integrated in your branch/trunk, or
>>> could
>>> you forward these to me? I didn't get any feedback from Kai this week,
>>> therefor
>>> asking you directly.
>>> Thanks, Matthias

More information about the Gc mailing list