boehm.c (mark_reference_fields): Change test to correctly detect bitmap overflow.
authorAndrew Haley <aph@redhat.com>
Fri, 15 Dec 2000 17:35:03 +0000 (17:35 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Fri, 15 Dec 2000 17:35:03 +0000 (17:35 +0000)
2000-12-14  Andrew Haley  <aph@redhat.com>

        * boehm.c (mark_reference_fields): Change test to correctly detect
        bitmap overflow.

From-SVN: r38293

gcc/java/ChangeLog
gcc/java/boehm.c

index ab30f6068c5bd42a339cae0b625896dba4358342..299fd4997530939ae31f2a4e4fd36d7daa70c05e 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-14  Andrew Haley  <aph@redhat.com>
+
+       * boehm.c (mark_reference_fields): Change test to correctly detect
+       bitmap overflow.
+
 2000-12-15  Andreas Jaeger  <aj@suse.de>
 
        * config-lang.in (lang_dirs): Added.
index f758c9d4fcb661de44d4e695023e12a94b6adc07..650d51645bff07a4efbf5e4952aa6f92134d4963 100644 (file)
@@ -130,7 +130,7 @@ mark_reference_fields (field, low, high, ubit,
          for (i = 0; i < size_words; ++i)
            set_bit (low, high, ubit - count - i - 1);
 
-         if (count > ubit - 2)
+         if (count >= ubit - 2)
            *pointer_after_end = 1;
 
          /* If we saw a non-reference field earlier, then we can't