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
ad34a822
Commit
ad34a822
authored
Apr 28, 2001
by
Zack Weinberg
Committed by
Zack Weinberg
Apr 28, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Use _Jv_Malloc.
From-SVN: r41651
parent
0539f1f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
libjava/ChangeLog
+2
-0
libjava/java/lang/natClassLoader.cc
+2
-2
No files found.
libjava/ChangeLog
View file @
ad34a822
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
* prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
* prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
* posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
* posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
(_Jv_ThreadDestroyData): Use _Jv_Free.
(_Jv_ThreadDestroyData): Use _Jv_Free.
* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
Use _Jv_Malloc.
2001-04-27 Tom Tromey <tromey@redhat.com>
2001-04-27 Tom Tromey <tromey@redhat.com>
...
...
libjava/java/lang/natClassLoader.cc
View file @
ad34a822
...
@@ -403,7 +403,8 @@ _Jv_UnregisterClass (jclass the_class)
...
@@ -403,7 +403,8 @@ _Jv_UnregisterClass (jclass the_class)
void
void
_Jv_RegisterInitiatingLoader
(
jclass
klass
,
java
::
lang
::
ClassLoader
*
loader
)
_Jv_RegisterInitiatingLoader
(
jclass
klass
,
java
::
lang
::
ClassLoader
*
loader
)
{
{
_Jv_LoaderInfo
*
info
=
new
_Jv_LoaderInfo
;
// non-gc alloc!
// non-gc alloc!
_Jv_LoaderInfo
*
info
=
(
_Jv_LoaderInfo
*
)
_Jv_Malloc
(
sizeof
(
_Jv_LoaderInfo
));
jint
hash
=
HASH_UTF
(
klass
->
name
);
jint
hash
=
HASH_UTF
(
klass
->
name
);
_Jv_MonitorEnter
(
&
ClassClass
);
_Jv_MonitorEnter
(
&
ClassClass
);
...
@@ -412,7 +413,6 @@ _Jv_RegisterInitiatingLoader (jclass klass, java::lang::ClassLoader *loader)
...
@@ -412,7 +413,6 @@ _Jv_RegisterInitiatingLoader (jclass klass, java::lang::ClassLoader *loader)
info
->
next
=
initiated_classes
[
hash
];
info
->
next
=
initiated_classes
[
hash
];
initiated_classes
[
hash
]
=
info
;
initiated_classes
[
hash
]
=
info
;
_Jv_MonitorExit
(
&
ClassClass
);
_Jv_MonitorExit
(
&
ClassClass
);
}
}
// This function is called many times during startup, before main() is
// This function is called many times during startup, before main() is
...
...
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