[Gc] Patch for handling zero mp passed to GC_init_gcj_malloc

Ivan Maidanski ivmai at mail.ru
Fri Sep 11 02:08:42 PDT 2009


Hi!

This small patch (ivmai126.diff) simply substitutes a fake mark proc (aborting with a message if GC_debug_gcj_malloc() is called) if mp==0 passed to GC_init_gcj_malloc() (ideally such mark proc should handle GC_DS_LEN and GC_DS_BITMAP, and should abort only in case of GC_DS_PROC, but this requires more efforts and code changes).

ChangeLog entries:

	* gcj_mlc.c (GC_gcj_fake_mark_proc): New static function.
	* gcj_mlc.c (GC_init_gcj_malloc): If mp is 0 then supply
	GC_gcj_fake_mark_proc (aborting with the appropriate message)
	instead.

Bye.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ivmai126.diff
Type: application/octet-stream
Size: 947 bytes
Desc: not available
Url : http://napali.hpl.hp.com/pipermail/gc/attachments/20090911/397405b0/ivmai126-0001.obj


More information about the Gc mailing list