Re: [Gc] GC_set_free_space_divisor api change on purpose?

Ivan Maidanski ivmai at mail.ru
Mon May 3 04:28:19 PDT 2010


Sun, 02 May 2010 16:44:14 -0500 Rex Dieter <rdieter at math.unl.edu>:

> I'm pretty sure the answer is yes, but asking to make sure.
> 
> In gc <= 7.1, gc.h contained:
> 
> GC_API GC_word GC_set_free_space_divisor(GC_word value);
> 
> and in 7.2-alpha4 anyway, now has
> 
> GC_API void GC_CALL GC_set_free_space_divisor(GC_word);
> GC_API GC_word GC_CALL GC_get_free_space_divisor(void);
> 
> Was this api change (at least to GC_set_free_space_divisor's return value) 
> intentional?

Yes, see http://article.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/2481/
(Hopefully, there's no too many apps exploiting GC_set_free_space_divisor() returned value.)

> 
> I'm asking because of downstream bug,
> https://bugzilla.redhat.com/show_bug.cgi?id=587391
> 
> where this change causes kaya build failures.  If this was intentional, 
> should be fairly straight-forward to patch kaya for the new gc behavior.

GC_VERSION_MAJOR/MINOR could be tested to select the proper usage model.

> 
> -- Rex



More information about the Gc mailing list