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
08bc8777
Commit
08bc8777
authored
Sep 26, 2004
by
Per Bothner
Committed by
Per Bothner
Sep 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* prims.cc (process_gcj_properties): Optimization.
From-SVN: r88147
parent
a22478ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
libjava/ChangeLog
+4
-0
libjava/prims.cc
+8
-11
No files found.
libjava/ChangeLog
View file @
08bc8777
2004
-
09
-
26
Per
Bothner
<
per
@
bothner
.
com
>
*
prims
.
cc
(
process_gcj_properties
):
Optimization
.
2004
-
09
-
26
Per
Bothner
<
per
@
bothner
.
com
>
*
java
/
util
/
Collections
.
java
(
sort
):
Copy
from
array
in
forwards
order
,
rather
than
reverse
order
which
may
be
much
less
efficient
.
...
...
libjava/prims.cc
View file @
08bc8777
...
...
@@ -881,18 +881,15 @@ process_gcj_properties ()
}
memset
((
void
*
)
&
_Jv_Environment_Properties
[
property_count
],
0
,
sizeof
(
property_pair
));
{
size_t
i
=
0
;
// Null terminate the strings.
while
(
_Jv_Environment_Properties
[
i
].
key
)
{
property_pair
*
prop
=
&
_Jv_Environment_Properties
[
i
];
prop
->
key
[
prop
->
key_length
]
=
0
;
prop
->
value
[
prop
->
value_length
]
=
0
;
i
++
;
}
}
// Null terminate the strings.
for
(
property_pair
*
prop
=
&
_Jv_Environment_Properties
[
0
];
prop
->
key
!=
NULL
;
prop
++
)
{
prop
->
key
[
prop
->
key_length
]
=
0
;
prop
->
value
[
prop
->
value_length
]
=
0
;
}
}
#endif // DISABLE_GETENV_PROPERTIES
...
...
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