2010-08-25 Ivan Maidanski <ivmai@mail.ru> (with help from Hans Boehm)
authorivmai <ivmai>
Wed, 25 Aug 2010 17:57:06 +0000 (17:57 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:54 +0000 (21:06 +0400)
* dyn_load.c (GC_register_dynlib_callback): Add FIXME.

ChangeLog
dyn_load.c

index 20373dd..07a214a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-25  Ivan Maidanski <ivmai@mail.ru> (with help from Hans Boehm)
+
+       * dyn_load.c (GC_register_dynlib_callback): Add FIXME.
+
 2010-08-18  Ivan Maidanski <ivmai@mail.ru> (really Andreas Tobler)
 
        * include/private/gcconfig.h: Add support for FreeBSD on ppc64.
index e1f7ed4..eab59ff 100644 (file)
@@ -486,6 +486,10 @@ STATIC int GC_register_dynlib_callback(struct dl_phdr_info * info,
 #         ifdef PT_GNU_RELRO
             if (n_load_segs >= MAX_LOAD_SEGS) ABORT("Too many PT_LOAD segs");
 #           if CPP_WORDSZ == 64
+              /* FIXME: GC_push_all eventually does the correct         */
+              /* rounding to the next multiple of ALIGNMENT, so, most   */
+              /* probably, we should remove the corresponding assertion */
+              /* check in GC_add_roots_inner along with this code line. */
               /* start pointer value may require aligning */
               start = (ptr_t)((word)start & ~(sizeof(word) - 1));
 #           endif