Skip to content

Commit 00f352d

Browse files
authored
Remove unused field from pthread struct. NFC (#26900)
Split out from #26857.
1 parent 71d627a commit 00f352d

9 files changed

Lines changed: 19 additions & 18 deletions

src/struct_info_generated.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,11 +1040,11 @@
10401040
"p_proto": 8
10411041
},
10421042
"pthread": {
1043-
"__size__": 124,
1044-
"profilerBlock": 100,
1043+
"__size__": 120,
1044+
"profilerBlock": 96,
10451045
"stack": 48,
10461046
"stack_size": 52,
1047-
"waiting_async": 116
1047+
"waiting_async": 112
10481048
},
10491049
"pthread_attr_t": {
10501050
"__size__": 44,

system/lib/libc/musl/src/internal/pthread_impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ struct pthread {
6969
#ifndef __EMSCRIPTEN__
7070
// Emscripten uses C11 _Thread_local instead for locale
7171
locale_t locale;
72-
#endif
72+
// Emscripten doesn't use this field.
7373
volatile int killlock[1];
74+
#endif
7475
char *dlerror_buf;
7576
void *stdio_locks;
7677

test/codesize/test_codesize_cxx_ctors1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"a.out.js": 19260,
33
"a.out.js.gz": 7991,
44
"a.out.nodebug.wasm": 132627,
5-
"a.out.nodebug.wasm.gz": 49919,
5+
"a.out.nodebug.wasm.gz": 49918,
66
"total": 151887,
7-
"total_gz": 57910,
7+
"total_gz": 57909,
88
"sent": [
99
"__cxa_throw",
1010
"_abort_js",

test/codesize/test_codesize_cxx_except_wasm.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"a.out.js": 19092,
33
"a.out.js.gz": 7925,
44
"a.out.nodebug.wasm": 147926,
5-
"a.out.nodebug.wasm.gz": 55308,
5+
"a.out.nodebug.wasm.gz": 55309,
66
"total": 167018,
7-
"total_gz": 63233,
7+
"total_gz": 63234,
88
"sent": [
99
"_abort_js",
1010
"_tzset_js",

test/codesize/test_codesize_cxx_except_wasm_legacy.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"a.out.js": 19166,
33
"a.out.js.gz": 7949,
44
"a.out.nodebug.wasm": 145732,
5-
"a.out.nodebug.wasm.gz": 54936,
5+
"a.out.nodebug.wasm.gz": 54935,
66
"total": 164898,
7-
"total_gz": 62885,
7+
"total_gz": 62884,
88
"sent": [
99
"_abort_js",
1010
"_tzset_js",

test/codesize/test_codesize_cxx_noexcept.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"a.out.js": 19260,
33
"a.out.js.gz": 7991,
44
"a.out.nodebug.wasm": 134657,
5-
"a.out.nodebug.wasm.gz": 50774,
5+
"a.out.nodebug.wasm.gz": 50773,
66
"total": 153917,
7-
"total_gz": 58765,
7+
"total_gz": 58764,
88
"sent": [
99
"__cxa_throw",
1010
"_abort_js",

test/codesize/test_codesize_hello_dylink.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"a.out.js": 26251,
33
"a.out.js.gz": 11195,
44
"a.out.nodebug.wasm": 17671,
5-
"a.out.nodebug.wasm.gz": 8920,
5+
"a.out.nodebug.wasm.gz": 8921,
66
"total": 43922,
7-
"total_gz": 20115,
7+
"total_gz": 20116,
88
"sent": [
99
"__syscall_stat64",
1010
"emscripten_resize_heap",

test/codesize/test_codesize_minimal_pthreads.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"a.out.js": 7372,
3-
"a.out.js.gz": 3594,
3+
"a.out.js.gz": 3593,
44
"a.out.nodebug.wasm": 19047,
5-
"a.out.nodebug.wasm.gz": 8795,
5+
"a.out.nodebug.wasm.gz": 8796,
66
"total": 26419,
77
"total_gz": 12389,
88
"sent": [

test/codesize/test_codesize_minimal_pthreads_memgrowth.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"a.out.js": 7781,
33
"a.out.js.gz": 3797,
44
"a.out.nodebug.wasm": 19048,
5-
"a.out.nodebug.wasm.gz": 8796,
5+
"a.out.nodebug.wasm.gz": 8797,
66
"total": 26829,
7-
"total_gz": 12593,
7+
"total_gz": 12594,
88
"sent": [
99
"a (memory)",
1010
"b (exit)",

0 commit comments

Comments
 (0)