Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
a3e0002e
Commit
a3e0002e
authored
May 29, 2013
by
Jan Ziak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: remove all badcallback() functions
R=iant CC=golang-dev
https://golang.org/cl/9738046
parent
d84132cc
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
0 additions
and
117 deletions
+0
-117
src/pkg/runtime/os_darwin.c
src/pkg/runtime/os_darwin.c
+0
-11
src/pkg/runtime/os_freebsd.c
src/pkg/runtime/os_freebsd.c
+0
-11
src/pkg/runtime/os_linux.c
src/pkg/runtime/os_linux.c
+0
-11
src/pkg/runtime/os_netbsd.c
src/pkg/runtime/os_netbsd.c
+0
-11
src/pkg/runtime/os_openbsd.c
src/pkg/runtime/os_openbsd.c
+0
-11
src/pkg/runtime/os_plan9.c
src/pkg/runtime/os_plan9.c
+0
-11
src/pkg/runtime/os_windows.c
src/pkg/runtime/os_windows.c
+0
-4
src/pkg/runtime/sys_windows_386.s
src/pkg/runtime/sys_windows_386.s
+0
-20
src/pkg/runtime/sys_windows_amd64.s
src/pkg/runtime/sys_windows_amd64.s
+0
-27
No files found.
src/pkg/runtime/os_darwin.c
View file @
a3e0002e
...
...
@@ -523,17 +523,6 @@ runtime·setprof(bool on)
runtime
·
sigprocmask
(
SIG_BLOCK
,
&
sigset_prof
,
nil
);
}
#pragma dataflag 16 // no pointers
static
int8
badcallback
[]
=
"runtime: cgo callback on thread not created by Go.
\n
"
;
// This runs on a foreign stack, without an m or a g. No stack split.
#pragma textflag 7
void
runtime
·
badcallback
(
void
)
{
runtime
·
write
(
2
,
badcallback
,
sizeof
badcallback
-
1
);
}
#pragma dataflag 16 // no pointers
static
int8
badsignal
[]
=
"runtime: signal received on thread not created by Go: "
;
...
...
src/pkg/runtime/os_freebsd.c
View file @
a3e0002e
...
...
@@ -235,17 +235,6 @@ runtime·setprof(bool on)
USED
(
on
);
}
#pragma dataflag 16 // no pointers
static
int8
badcallback
[]
=
"runtime: cgo callback on thread not created by Go.
\n
"
;
// This runs on a foreign stack, without an m or a g. No stack split.
#pragma textflag 7
void
runtime
·
badcallback
(
void
)
{
runtime
·
write
(
2
,
badcallback
,
sizeof
badcallback
-
1
);
}
#pragma dataflag 16 // no pointers
static
int8
badsignal
[]
=
"runtime: signal received on thread not created by Go: "
;
...
...
src/pkg/runtime/os_linux.c
View file @
a3e0002e
...
...
@@ -284,17 +284,6 @@ runtime·setprof(bool on)
USED
(
on
);
}
#pragma dataflag 16 // no pointers
static
int8
badcallback
[]
=
"runtime: cgo callback on thread not created by Go.
\n
"
;
// This runs on a foreign stack, without an m or a g. No stack split.
#pragma textflag 7
void
runtime
·
badcallback
(
void
)
{
runtime
·
write
(
2
,
badcallback
,
sizeof
badcallback
-
1
);
}
#pragma dataflag 16 // no pointers
static
int8
badsignal
[]
=
"runtime: signal received on thread not created by Go: "
;
...
...
src/pkg/runtime/os_netbsd.c
View file @
a3e0002e
...
...
@@ -275,17 +275,6 @@ runtime·setprof(bool on)
USED
(
on
);
}
#pragma dataflag 16 // no pointers
static
int8
badcallback
[]
=
"runtime: cgo callback on thread not created by Go.
\n
"
;
// This runs on a foreign stack, without an m or a g. No stack split.
#pragma textflag 7
void
runtime
·
badcallback
(
void
)
{
runtime
·
write
(
2
,
badcallback
,
sizeof
badcallback
-
1
);
}
#pragma dataflag 16 // no pointers
static
int8
badsignal
[]
=
"runtime: signal received on thread not created by Go: "
;
...
...
src/pkg/runtime/os_openbsd.c
View file @
a3e0002e
...
...
@@ -257,17 +257,6 @@ runtime·setprof(bool on)
USED
(
on
);
}
#pragma dataflag 16 // no pointers
static
int8
badcallback
[]
=
"runtime: cgo callback on thread not created by Go.
\n
"
;
// This runs on a foreign stack, without an m or a g. No stack split.
#pragma textflag 7
void
runtime
·
badcallback
(
void
)
{
runtime
·
write
(
2
,
badcallback
,
sizeof
badcallback
-
1
);
}
#pragma dataflag 16 // no pointers
static
int8
badsignal
[]
=
"runtime: signal received on thread not created by Go: "
;
...
...
src/pkg/runtime/os_plan9.c
View file @
a3e0002e
...
...
@@ -330,17 +330,6 @@ runtime·setprof(bool on)
USED
(
on
);
}
#pragma dataflag 16 // no pointers
static
int8
badcallback
[]
=
"runtime: cgo callback on thread not created by Go.
\n
"
;
// This runs on a foreign stack, without an m or a g. No stack split.
#pragma textflag 7
void
runtime
·
badcallback
(
void
)
{
runtime
·
pwrite
(
2
,
badcallback
,
sizeof
badcallback
-
1
,
-
1LL
);
}
#pragma dataflag 16 // no pointers
static
int8
badsignal
[]
=
"runtime: signal received on thread not created by Go.
\n
"
;
...
...
src/pkg/runtime/os_windows.c
View file @
a3e0002e
...
...
@@ -450,10 +450,6 @@ runtime·setprof(bool on)
USED
(
on
);
}
#pragma dataflag 16 // no pointers
int8
runtime
·
badcallbackmsg
[]
=
"runtime: cgo callback on thread not created by Go.
\n
"
;
int32
runtime
·
badcallbacklen
=
sizeof
runtime
·
badcallbackmsg
-
1
;
#pragma dataflag 16 // no pointers
int8
runtime
·
badsignalmsg
[]
=
"runtime: signal received on thread not created by Go.
\n
"
;
int32
runtime
·
badsignallen
=
sizeof
runtime
·
badsignalmsg
-
1
;
...
...
src/pkg/runtime/sys_windows_386.s
View file @
a3e0002e
...
...
@@ -38,26 +38,6 @@ TEXT runtime·asmstdcall(SB),7,$0
RET
TEXT
runtime
·
badcallback
(
SB
),7,$24
//
stderr
MOVL
$
-
12
,
0
(
SP
)
MOVL
SP
,
BP
CALL
*
runtime
·
GetStdHandle
(
SB
)
MOVL
BP
,
SP
MOVL
AX
,
0
(
SP
)
//
handle
MOVL
$runtime
·
badcallbackmsg
(
SB
),
DX
//
pointer
MOVL
DX
,
4
(
SP
)
MOVL
runtime
·
badcallbacklen
(
SB
),
DX
//
count
MOVL
DX
,
8
(
SP
)
LEAL
20
(
SP
),
DX
//
written
count
MOVL
$
0
,
0
(
DX
)
MOVL
DX
,
12
(
SP
)
MOVL
$
0
,
16
(
SP
)
//
overlapped
CALL
*
runtime
·
WriteFile
(
SB
)
MOVL
BP
,
SI
RET
TEXT
runtime
·
badsignal
(
SB
),7,$24
//
stderr
MOVL
$
-
12
,
0
(
SP
)
...
...
src/pkg/runtime/sys_windows_amd64.s
View file @
a3e0002e
...
...
@@ -60,33 +60,6 @@ loadregs:
RET
//
This
should
be
called
on
a
system
stack
,
//
so
we
don
't need to concern about split stack.
TEXT
runtime
·
badcallback
(
SB
),7,$0
SUBQ
$
48
,
SP
//
stderr
MOVQ
$
-
12
,
CX
//
stderr
MOVQ
CX
,
0
(
SP
)
MOVQ
runtime
·
GetStdHandle
(
SB
),
AX
CALL
AX
MOVQ
AX
,
CX
//
handle
MOVQ
CX
,
0
(
SP
)
MOVQ
$runtime
·
badcallbackmsg
(
SB
),
DX
//
pointer
MOVQ
DX
,
8
(
SP
)
MOVL
$runtime
·
badcallbacklen
(
SB
),
R8
//
count
MOVQ
R8
,
16
(
SP
)
LEAQ
40
(
SP
),
R9
//
written
count
MOVQ
$
0
,
0
(
R9
)
MOVQ
R9
,
24
(
SP
)
MOVQ
$
0
,
32
(
SP
)
//
overlapped
MOVQ
runtime
·
WriteFile
(
SB
),
AX
CALL
AX
ADDQ
$
48
,
SP
RET
TEXT
runtime
·
badsignal
(
SB
),7,$48
//
stderr
MOVQ
$
-
12
,
CX
//
stderr
...
...
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