Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
9b15ad8c
Commit
9b15ad8c
authored
Oct 14, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm: adjust recover for new reflect.call
R=ken2 CC=golang-dev
https://golang.org/cl/2471043
parent
1748dc34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
proc.c
src/pkg/runtime/proc.c
+5
-1
No files found.
src/pkg/runtime/proc.c
View file @
9b15ad8c
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
#include "runtime.h"
#include "runtime.h"
#include "arch.h"
#include "defs.h"
#include "defs.h"
#include "malloc.h"
#include "malloc.h"
#include "os.h"
#include "os.h"
...
@@ -1001,7 +1002,10 @@ void
...
@@ -1001,7 +1002,10 @@ void
// take defer off list in case of recursive panic
// take defer off list in case of recursive panic
g
->
defer
=
d
->
link
;
g
->
defer
=
d
->
link
;
g
->
ispanic
=
true
;
// rock for newstack, where reflect.call ends up
g
->
ispanic
=
true
;
// rock for newstack, where reflect.call ends up
reflect
·
call
(
d
->
fn
,
d
->
args
,
d
->
siz
);
if
(
thechar
==
'5'
)
reflect
·
call
(
d
->
fn
,
d
->
args
+
4
,
d
->
siz
-
4
);
// reflect.call does not expect LR
else
reflect
·
call
(
d
->
fn
,
d
->
args
,
d
->
siz
);
if
(
p
->
recovered
)
{
if
(
p
->
recovered
)
{
g
->
panic
=
p
->
link
;
g
->
panic
=
p
->
link
;
free
(
p
);
free
(
p
);
...
...
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