Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
1552ac34
Commit
1552ac34
authored
May 22, 2015
by
Michael Arntzenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check extra hard that we're only raising ExcInfos
parent
6baed95d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/runtime/cxx_unwind.cpp
src/runtime/cxx_unwind.cpp
+6
-1
No files found.
src/runtime/cxx_unwind.cpp
View file @
1552ac34
...
...
@@ -646,7 +646,7 @@ namespace __cxxabiv1 {
extern
"C"
void
*
__cxa_allocate_exception
(
size_t
size
)
noexcept
{
// we should only ever be throwing ExcInfos
ASSERT
(
size
==
sizeof
(
pyston
::
ExcInfo
),
"allocating exception whose size doesn't match ExcInfo"
);
RELEASE_
ASSERT
(
size
==
sizeof
(
pyston
::
ExcInfo
),
"allocating exception whose size doesn't match ExcInfo"
);
// Instead of allocating memory for this exception, we return a pointer to a pre-allocated thread-local variable.
//
...
...
@@ -694,9 +694,14 @@ extern "C" void __cxa_end_catch() {
// See comment in __cxa_begin_catch for why we don't clear the exception ferry here.
}
// This is the mangled symbol for the type info for pyston::ExcInfo.
#define EXCINFO_TYPE_INFO _ZTIN6pyston7ExcInfoE
extern
"C"
std
::
type_info
EXCINFO_TYPE_INFO
;
extern
"C"
void
__cxa_throw
(
void
*
exc_obj
,
std
::
type_info
*
tinfo
,
void
(
*
dtor
)(
void
*
))
{
assert
(
!
pyston
::
in_cleanup_code
);
assert
(
exc_obj
);
RELEASE_ASSERT
(
tinfo
==
&
EXCINFO_TYPE_INFO
,
"can't throw a non-ExcInfo value! type info: %p"
,
tinfo
);
if
(
VERBOSITY
(
"cxx_unwind"
))
printf
(
"***** __cxa_throw() *****
\n
"
);
...
...
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