This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [Gc] Re: boehm-gc merge for GCC
- From: Matthias Klose <doko at ubuntu dot com>
- To: NightStrike <nightstrike at gmail dot com>
- Cc: Ivan Maidanski <ivmai at mail dot ru>, Boehm GC <gc at linux dot hpl dot hp dot com>, Kai Tietz <ktietz70 at googlemail dot com>, GCJ-patches <java-patches at gcc dot gnu dot org>, Andrew Haley <aph at redhat dot com>
- Date: Sat, 17 Nov 2012 02:53:43 +0100
- Subject: Re: [Gc] Re: boehm-gc merge for GCC
- References: <1353097280.505328435@f161.mail.ru> <50A67667.7020600@ubuntu.com> <CAF1jjLucRudE2a3gCZq6erkJKfs1nC+DicM+4f4moXJ5HPy9g@mail.gmail.com> <1353099257.140499471@f123.mail.ru> <CAF1jjLsA1nzLaJejMiAfzqZZ8btw37n0B3H7_qz-UrLvNQGqzA@mail.gmail.com>
[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?
Matthias
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@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@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@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@ubuntu.com>:
>>>
>>> Hi Ivan,
>>>
>>> in
>>>
>>> http://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