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
d07548f9
Commit
d07548f9
authored
Mar 03, 2006
by
Tom Tromey
Committed by
Tom Tromey
Mar 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* interpret.cc (do_allocate_static_fields): Added comment.
From-SVN: r111683
parent
65ad7c63
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
libjava/ChangeLog
+4
-0
libjava/interpret.cc
+11
-1
No files found.
libjava/ChangeLog
View file @
d07548f9
2006
-
03
-
03
Tom
Tromey
<
tromey
@
redhat
.
com
>
*
interpret
.
cc
(
do_allocate_static_fields
):
Added
comment
.
2006
-
03
-
01
Tom
Tromey
<
tromey
@
redhat
.
com
>
PR
java
/
24321
:
...
...
libjava/interpret.cc
View file @
d07548f9
...
...
@@ -3882,7 +3882,17 @@ _Jv_InterpreterEngine::do_allocate_static_fields (jclass klass,
_Jv_InterpClass
*
iclass
=
(
_Jv_InterpClass
*
)
klass
->
aux_info
;
// Splitting the allocations here lets us scan reference fields and
// avoid scanning non-reference fields.
// avoid scanning non-reference fields. How reference fields are
// scanned is a bit tricky: we allocate using _Jv_AllocRawObj, which
// means that this memory will be scanned conservatively (same
// difference, since we know all the contents here are pointers).
// Then we put pointers into this memory into the 'fields'
// structure. Most of these are interior pointers, which is ok (but
// even so the pointer to the first reference field will be used and
// that is not an interior pointer). The 'fields' array is also
// allocated with _Jv_AllocRawObj (see defineclass.cc), so it will
// be scanned. A pointer to this array is held by Class and thus
// seen by the collector.
char
*
reference_fields
=
(
char
*
)
_Jv_AllocRawObj
(
pointer_size
);
char
*
non_reference_fields
=
(
char
*
)
_Jv_AllocBytes
(
other_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