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
c30e503e
Commit
c30e503e
authored
Aug 11, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc fixes / helpers
parent
14a7c587
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
9 deletions
+5
-9
src/codegen/ast_interpreter.cpp
src/codegen/ast_interpreter.cpp
+1
-1
src/gc/collector.cpp
src/gc/collector.cpp
+0
-5
src/gc/heap.cpp
src/gc/heap.cpp
+1
-1
src/runtime/dict.cpp
src/runtime/dict.cpp
+1
-1
src/runtime/objmodel.cpp
src/runtime/objmodel.cpp
+1
-1
src/runtime/tuple.cpp
src/runtime/tuple.cpp
+1
-0
No files found.
src/codegen/ast_interpreter.cpp
View file @
c30e503e
...
@@ -1508,7 +1508,7 @@ Value ASTInterpreter::visit_name(AST_Name* node) {
...
@@ -1508,7 +1508,7 @@ Value ASTInterpreter::visit_name(AST_Name* node) {
assert
(
getSymVRegMap
()[
node
->
id
]
==
node
->
vreg
);
assert
(
getSymVRegMap
()[
node
->
id
]
==
node
->
vreg
);
Box
*
val
=
vregs
[
node
->
vreg
];
Box
*
val
=
vregs
[
node
->
vreg
];
if
(
val
)
{
if
(
val
)
{
assert
(
gc
::
isValidGCObject
(
val
)
);
ASSERT
(
gc
::
isValidGCObject
(
val
),
"%s is %p"
,
node
->
id
.
c_str
(),
val
);
v
.
o
=
val
;
v
.
o
=
val
;
return
v
;
return
v
;
}
}
...
...
src/gc/collector.cpp
View file @
c30e503e
...
@@ -682,11 +682,6 @@ static void markPhase() {
...
@@ -682,11 +682,6 @@ static void markPhase() {
// pending finalization list.
// pending finalization list.
orderFinalizers
();
orderFinalizers
();
#if TRACE_GC_MARKING
fclose
(
trace_fp
);
trace_fp
=
NULL
;
#endif
#ifndef NVALGRIND
#ifndef NVALGRIND
VALGRIND_ENABLE_ERROR_REPORTING
;
VALGRIND_ENABLE_ERROR_REPORTING
;
#endif
#endif
...
...
src/gc/heap.cpp
View file @
c30e503e
...
@@ -497,7 +497,7 @@ SmallArena::Block** SmallArena::_freeChain(Block** head, std::vector<Box*>& weak
...
@@ -497,7 +497,7 @@ SmallArena::Block** SmallArena::_freeChain(Block** head, std::vector<Box*>& weak
clearMark
(
al
);
clearMark
(
al
);
}
else
{
}
else
{
if
(
_doFree
(
al
,
&
weakly_referenced
))
{
if
(
_doFree
(
al
,
&
weakly_referenced
))
{
GC_TRACE_LOG
(
"freeing %p
\n
"
,
al
->
user_data
);
//
GC_TRACE_LOG("freeing %p\n", al->user_data);
b
->
isfree
.
set
(
atom_idx
);
b
->
isfree
.
set
(
atom_idx
);
#ifndef NDEBUG
#ifndef NDEBUG
memset
(
al
->
user_data
,
0xbb
,
b
->
size
-
sizeof
(
GCAllocation
));
memset
(
al
->
user_data
,
0xbb
,
b
->
size
-
sizeof
(
GCAllocation
));
...
...
src/runtime/dict.cpp
View file @
c30e503e
...
@@ -708,7 +708,7 @@ void BoxedDictIterator::gcHandler(GCVisitor* v, Box* b) {
...
@@ -708,7 +708,7 @@ void BoxedDictIterator::gcHandler(GCVisitor* v, Box* b) {
}
}
void
BoxedDictView
::
gcHandler
(
GCVisitor
*
v
,
Box
*
b
)
{
void
BoxedDictView
::
gcHandler
(
GCVisitor
*
v
,
Box
*
b
)
{
assert
(
b
->
cls
==
dict_items_cls
);
assert
(
b
->
cls
==
dict_items_cls
||
b
->
cls
==
dict_values_cls
||
b
->
cls
==
dict_keys_cls
);
Box
::
gcHandler
(
v
,
b
);
Box
::
gcHandler
(
v
,
b
);
BoxedDictView
*
view
=
static_cast
<
BoxedDictView
*>
(
b
);
BoxedDictView
*
view
=
static_cast
<
BoxedDictView
*>
(
b
);
...
...
src/runtime/objmodel.cpp
View file @
c30e503e
...
@@ -3696,7 +3696,7 @@ Box* callCLFunc(CLFunction* f, CallRewriteArgs* rewrite_args, int num_output_arg
...
@@ -3696,7 +3696,7 @@ Box* callCLFunc(CLFunction* f, CallRewriteArgs* rewrite_args, int num_output_arg
ASSERT
(
chosen_cf
->
spec
->
rtn_type
->
isFitBy
(
r
->
cls
),
"%s (%p) was supposed to return %s, but gave a %s"
,
ASSERT
(
chosen_cf
->
spec
->
rtn_type
->
isFitBy
(
r
->
cls
),
"%s (%p) was supposed to return %s, but gave a %s"
,
g
.
func_addr_registry
.
getFuncNameAtAddress
(
chosen_cf
->
code
,
true
,
NULL
).
c_str
(),
chosen_cf
->
code
,
g
.
func_addr_registry
.
getFuncNameAtAddress
(
chosen_cf
->
code
,
true
,
NULL
).
c_str
(),
chosen_cf
->
code
,
chosen_cf
->
spec
->
rtn_type
->
debugName
().
c_str
(),
r
->
cls
->
tp_name
);
chosen_cf
->
spec
->
rtn_type
->
debugName
().
c_str
(),
r
->
cls
->
tp_name
);
assert
(
!
PyErr_Occurred
()
);
ASSERT
(
!
PyErr_Occurred
(),
"%p"
,
chosen_cf
->
code
);
}
}
return
r
;
return
r
;
...
...
src/runtime/tuple.cpp
View file @
c30e503e
...
@@ -128,6 +128,7 @@ int BoxedTuple::Resize(BoxedTuple** pv, size_t newsize) noexcept {
...
@@ -128,6 +128,7 @@ int BoxedTuple::Resize(BoxedTuple** pv, size_t newsize) noexcept {
BoxedTuple
*
resized
=
new
(
newsize
)
BoxedTuple
();
BoxedTuple
*
resized
=
new
(
newsize
)
BoxedTuple
();
memmove
(
resized
->
elts
,
t
->
elts
,
sizeof
(
Box
*
)
*
t
->
size
());
memmove
(
resized
->
elts
,
t
->
elts
,
sizeof
(
Box
*
)
*
t
->
size
());
memset
(
resized
->
elts
+
t
->
size
(),
0
,
sizeof
(
Box
*
)
*
(
newsize
-
t
->
size
()));
*
pv
=
resized
;
*
pv
=
resized
;
return
0
;
return
0
;
...
...
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