Skip to content

Commit 14cd398

Browse files
committed
libia/memory_maps: remove fprintf(stderr, ...)s that are crashing on gcc
1 parent fbbde37 commit 14cd398

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

runtime/libia2/memory_maps.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ struct ia2_thread_metadata *ia2_all_threads_metadata_new_for_current_thread(stru
2222

2323
const pid_t tid = gettid();
2424
this->tids[thread] = tid;
25-
#if IA2_VERBOSE
26-
fprintf(stderr, "new thread metadata for thread %ld\n", (long)tid);
27-
#endif
2825

2926
struct ia2_thread_metadata *metadata = &this->thread_metadata[thread];
3027
metadata->tid = tid;
@@ -40,15 +37,6 @@ struct ia2_thread_metadata *ia2_all_threads_metadata_get_for_current_thread(stru
4037
// was supposed to be called first for this function to find it.
4138
const size_t num_threads = min(IA2_MAX_THREADS, atomic_load(&this->num_threads));
4239

43-
#if IA2_VERBOSE
44-
fprintf(stderr, "get thread metadata for thread %ld\n", (long)tid);
45-
fprintf(stderr, "searching through %zu threads\n", num_threads);
46-
fprintf(stderr, "&this->num_threads = %p\n", &this->num_threads);
47-
fprintf(stderr, "this = %p\n", this);
48-
fprintf(stderr, "&ia2_threads_metadata = %p\n", &ia2_threads_metadata);
49-
fprintf(stderr, "getpid() = %ld\n", (long)getpid());
50-
#endif
51-
5240
struct ia2_thread_metadata *metadata = NULL;
5341
for (size_t thread = 0; thread < num_threads; thread++) {
5442
if (this->tids[thread] == tid) {

0 commit comments

Comments
 (0)