boehm.c (mark_reference_fields): Only call byte_position on non-static fields.
* boehm.c (mark_reference_fields): Only call byte_position on non-static fields. From-SVN: r33351
This commit is contained in:
parent
0f89df67fc
commit
8a008c41a1
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2000-04-22 Tom Tromey <tromey@cygnus.com>
|
||||
|
||||
* boehm.c (mark_reference_fields): Only call byte_position on
|
||||
non-static fields.
|
||||
|
||||
2000-04-22 Tom Tromey <tromey@cygnus.com>
|
||||
|
||||
* boehm.c (mark_reference_fields): Added `last_view_index'
|
||||
|
|
|
@ -94,11 +94,12 @@ mark_reference_fields (field, low, high, ubit,
|
|||
|
||||
for (; field != NULL_TREE; field = TREE_CHAIN (field))
|
||||
{
|
||||
HOST_WIDE_INT offset = tree_low_cst (byte_position (field), 1);
|
||||
HOST_WIDE_INT offset;
|
||||
|
||||
if (FIELD_STATIC (field))
|
||||
continue;
|
||||
|
||||
offset = tree_low_cst (byte_position (field), 1);
|
||||
if (JREFERENCE_TYPE_P (TREE_TYPE (field)))
|
||||
{
|
||||
unsigned int count;
|
||||
|
|
Loading…
Add table
Reference in a new issue