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
a5c30a8c
Commit
a5c30a8c
authored
Jun 15, 2001
by
Tom Tromey
Committed by
Tom Tromey
Jun 15, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
From-SVN: r43415
parent
827a5be7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
libjava/ChangeLog
+4
-0
libjava/jni.cc
+15
-8
No files found.
libjava/ChangeLog
View file @
a5c30a8c
2001-06-15 Tom Tromey <tromey@redhat.com>
2001-06-15 Tom Tromey <tromey@redhat.com>
* jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
2001-06-15 Tom Tromey <tromey@redhat.com>
* java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
* java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
NULL if no library on the list has the symbol.
NULL if no library on the list has the symbol.
(init): Call add_library on the program itself.
(init): Call add_library on the program itself.
...
...
libjava/jni.cc
View file @
a5c30a8c
...
@@ -278,16 +278,23 @@ _Jv_JNI_NewLocalRef (JNIEnv *env, jobject obj)
...
@@ -278,16 +278,23 @@ _Jv_JNI_NewLocalRef (JNIEnv *env, jobject obj)
// Try to find an open slot somewhere in the topmost frame.
// Try to find an open slot somewhere in the topmost frame.
_Jv_JNI_LocalFrame
*
frame
=
env
->
locals
;
_Jv_JNI_LocalFrame
*
frame
=
env
->
locals
;
bool
done
=
false
,
set
=
false
;
bool
done
=
false
,
set
=
false
;
while
(
frame
!=
NULL
&&
!
done
)
for
(;
frame
!=
NULL
&&
!
done
;
frame
=
frame
->
next
)
{
{
for
(
int
i
=
0
;
i
<
frame
->
size
;
++
i
)
for
(
int
i
=
0
;
i
<
frame
->
size
;
++
i
)
if
(
frame
->
vec
[
i
]
==
NULL
)
{
{
if
(
frame
->
vec
[
i
]
==
NULL
)
set
=
true
;
{
done
=
true
;
set
=
true
;
frame
->
vec
[
i
]
=
obj
;
done
=
true
;
break
;
frame
->
vec
[
i
]
=
obj
;
}
break
;
}
}
// If we found a slot, or if the frame we just searched is the
// mark frame, then we are done.
if
(
done
||
frame
->
marker
!=
MARK_NONE
)
break
;
}
}
if
(
!
set
)
if
(
!
set
)
...
...
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