File tree Expand file tree Collapse file tree 3 files changed +0
-15
lines changed Expand file tree Collapse file tree 3 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -67,17 +67,6 @@ struct frame_glue_fns;
67
67
68
68
static size_t const TIME_SLICE_IN_MS = 10 ;
69
69
70
- // This helps our preemption scheme handle "running on valgrind".
71
-
72
- #if defined(__WIN32__)
73
- #define YIELD_C_THREAD_IF_ON_VALGRIND (void );
74
- #else
75
- #define YIELD_C_THREAD_IF_ON_VALGRIND \
76
- if (RUNNING_ON_VALGRIND) { \
77
- pthread_yield (); \
78
- }
79
- #endif
80
-
81
70
// Every reference counted object should derive from this base class.
82
71
83
72
template <typename T>
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ timer_loop(void *ptr) {
34
34
size_t ms = TIME_SLICE_IN_MS;
35
35
36
36
while (!timer->exit_flag ) {
37
- YIELD_C_THREAD_IF_ON_VALGRIND;
38
37
#if defined(__WIN32__)
39
38
Sleep (ms);
40
39
#else
Original file line number Diff line number Diff line change 1
1
#include " rust_internal.h"
2
- #include " valgrind.h"
3
2
4
3
// Upcalls.
5
4
6
5
#ifdef __GNUC__
7
6
#define LOG_UPCALL_ENTRY (task ) \
8
- YIELD_C_THREAD_IF_ON_VALGRIND; \
9
7
(task)->dom->get_log ().reset_indent(0 ); \
10
8
(task)->log (rust_log::UPCALL, \
11
9
" > UPCALL %s - task: 0x%" PRIxPTR \
15
13
(task)->dom->get_log ().indent();
16
14
#else
17
15
#define LOG_UPCALL_ENTRY (task ) \
18
- YIELD_C_THREAD_IF_ON_VALGRIND; \
19
16
(task)->dom->get_log ().reset_indent(0 ); \
20
17
(task)->log (rust_log::UPCALL, \
21
18
" > UPCALL task: x%" PRIxPTR (task)); \
You can’t perform that action at this time.
0 commit comments