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
c4a4b013
Commit
c4a4b013
authored
Apr 15, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add our annotations to _multiprocessing
parent
e6b7d6c0
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
10 deletions
+7
-10
from_cpython/Modules/_multiprocessing/multiprocessing.c
from_cpython/Modules/_multiprocessing/multiprocessing.c
+5
-4
src/runtime/types.cpp
src/runtime/types.cpp
+2
-0
test/tests/import_test.py
test/tests/import_test.py
+0
-1
test/tests/logging_test.py
test/tests/logging_test.py
+0
-1
test/tests/multiprocessing_test.py
test/tests/multiprocessing_test.py
+0
-1
test/tests/pyc_stress_test.py
test/tests/pyc_stress_test.py
+0
-3
No files found.
from_cpython/Modules/_multiprocessing/multiprocessing.c
View file @
c4a4b013
...
...
@@ -255,16 +255,16 @@ init_multiprocessing(void)
temp
=
PyImport_ImportModule
(
PICKLE_MODULE
);
if
(
!
temp
)
return
;
pickle_dumps
=
Py
Object_GetAttrString
(
temp
,
"dumps"
);
pickle_loads
=
Py
Object_GetAttrString
(
temp
,
"loads"
);
pickle_protocol
=
Py
Object_GetAttrString
(
temp
,
"HIGHEST_PROTOCOL"
);
pickle_dumps
=
Py
GC_RegisterStaticConstant
(
PyObject_GetAttrString
(
temp
,
"dumps"
)
);
pickle_loads
=
Py
GC_RegisterStaticConstant
(
PyObject_GetAttrString
(
temp
,
"loads"
)
);
pickle_protocol
=
Py
GC_RegisterStaticConstant
(
PyObject_GetAttrString
(
temp
,
"HIGHEST_PROTOCOL"
)
);
Py_XDECREF
(
temp
);
/* Get copy of BufferTooShort */
temp
=
PyImport_ImportModule
(
"multiprocessing"
);
if
(
!
temp
)
return
;
BufferTooShort
=
Py
Object_GetAttrString
(
temp
,
"BufferTooShort"
);
BufferTooShort
=
Py
GC_RegisterStaticConstant
(
PyObject_GetAttrString
(
temp
,
"BufferTooShort"
)
);
Py_XDECREF
(
temp
);
/* Add connection type to module */
...
...
@@ -291,6 +291,7 @@ init_multiprocessing(void)
return
;
PyDict_SetItemString
(
SemLockType
.
tp_dict
,
"SEM_VALUE_MAX"
,
py_sem_value_max
);
Py_DECREF
(
py_sem_value_max
);
}
PyModule_AddObject
(
module
,
"SemLock"
,
(
PyObject
*
)
&
SemLockType
);
#endif
...
...
src/runtime/types.cpp
View file @
c4a4b013
...
...
@@ -4779,6 +4779,8 @@ static void call_sys_exitfunc(void) {
PySys_WriteStderr
(
"Error in sys.exitfunc:
\n
"
);
}
PyErr_Print
();
}
else
{
Py_DECREF
(
res
);
}
Py_DECREF
(
exitfunc
);
}
...
...
test/tests/import_test.py
View file @
c4a4b013
# expected: reffail
import
import_target
print
import_target
.
x
...
...
test/tests/logging_test.py
View file @
c4a4b013
# expected: reffail
import
logging
import
warnings
...
...
test/tests/multiprocessing_test.py
View file @
c4a4b013
# expected: reffail
import
multiprocessing
# from https://docs.python.org/2/library/multiprocessing.html
...
...
test/tests/pyc_stress_test.py
View file @
c4a4b013
# expected: reffail
# skip-if: '-x' in EXTRA_JIT_ARGS
# - too slow
# Note: CPython doesn't pass this test
...
...
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