Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
bdeb2c96
Commit
bdeb2c96
authored
Sep 06, 2007
by
Roman Zippel
Committed by
Roman Zippel
Sep 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boehm.c (mark_reference_fields): Move misaligned pointer check
after JREFERENCE_TYPE_P test From-SVN: r128208
parent
bc211e05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
gcc/java/ChangeLog
+5
-0
gcc/java/boehm.c
+7
-7
No files found.
gcc/java/ChangeLog
View file @
bdeb2c96
2007
-
09
-
07
Roman
Zippel
<
zippel
@
linux
-
m68k
.
org
>
boehm
.
c
(
mark_reference_fields
):
Move
misaligned
pointer
check
after
JREFERENCE_TYPE_P
test
2007
-
09
-
06
Roman
Zippel
<
zippel
@
linux
-
m68k
.
org
>
*
boehm
.
c
(
mark_reference_fields
):
Don
't use bitmap as gc_descr
...
...
gcc/java/boehm.c
View file @
bdeb2c96
...
...
@@ -98,13 +98,6 @@ mark_reference_fields (tree field,
offset
=
int_byte_position
(
field
);
size_bytes
=
int_size_in_bytes
(
TREE_TYPE
(
field
));
if
(
offset
%
(
POINTER_SIZE
/
BITS_PER_UNIT
))
{
*
all_bits_set
=
-
1
;
*
pointer_after_end
=
1
;
break
;
}
if
(
JREFERENCE_TYPE_P
(
TREE_TYPE
(
field
))
/* An `object' of type gnu.gcj.RawData is actually non-Java
data. */
...
...
@@ -118,6 +111,13 @@ mark_reference_fields (tree field,
we already covered, then we are doomed. */
gcc_assert
(
offset
>
*
last_view_index
);
if
(
offset
%
(
POINTER_SIZE
/
BITS_PER_UNIT
))
{
*
all_bits_set
=
-
1
;
*
pointer_after_end
=
1
;
break
;
}
count
=
offset
*
BITS_PER_UNIT
/
POINTER_SIZE
;
size_words
=
size_bytes
*
BITS_PER_UNIT
/
POINTER_SIZE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment