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
38b3a2c0
Commit
38b3a2c0
authored
Feb 21, 2000
by
Tom Tromey
Committed by
Tom Tromey
Feb 21, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* boehm.cc (_Jv_AllocBytes): Clear returned memory.
From-SVN: r32085
parent
99740276
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
libjava/ChangeLog
+4
-0
libjava/boehm.cc
+8
-1
No files found.
libjava/ChangeLog
View file @
38b3a2c0
2000-02-20 Tom Tromey <tromey@cygnus.com>
* boehm.cc (_Jv_AllocBytes): Clear returned memory.
2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
* java/util/zip/ZipEntry.java (setCrc): Fix overflow.
...
...
libjava/boehm.cc
View file @
38b3a2c0
...
...
@@ -321,7 +321,14 @@ _Jv_AllocArray (jsize size)
void
*
_Jv_AllocBytes
(
jsize
size
)
{
return
GC_GENERIC_MALLOC
(
size
,
PTRFREE
);
void
*
r
=
GC_GENERIC_MALLOC
(
size
,
PTRFREE
);
// We have to explicitly zero memory here, as the GC doesn't
// guarantee that PTRFREE allocations are zeroed. Note that we
// don't have to do this for other allocation types because we set
// the `ok_init' flag in the type descriptor.
if
(
r
!=
NULL
)
memset
(
r
,
0
,
size
);
return
r
;
}
static
void
...
...
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