Update test10 (it was a bit flaky), update libstdc++ binary, and added fake __libc_single_threadedhandling

This commit is contained in:
ptitSeb
2022-03-31 11:01:15 +02:00
parent 370286ee25
commit 18a1cc77d4
6 changed files with 6 additions and 0 deletions

View File

@@ -2726,6 +2726,9 @@ EXPORT char* my___progname_full = NULL;
EXPORT char* my_program_invocation_name = NULL;
EXPORT char* my_program_invocation_short_name = NULL;
// ignoring this for now
EXPORT char my___libc_single_threaded = 0;
#define PRE_INIT\
if(box64_tcmalloc_minimal) \
lib->priv.w.lib = dlopen(NULL, RTLD_LAZY | RTLD_GLOBAL); \

View File

@@ -2301,4 +2301,6 @@ GOM(__deregister_frame_info, pFp)
DATAM(program_invocation_name, sizeof(void*))
DATAM(program_invocation_short_name, sizeof(void*))
DATAM(__libc_single_threaded, 1)
GO(iconvctl, iFlip)

Binary file not shown.

View File

@@ -11,6 +11,7 @@ std::stringstream stream;
void append_number(int x) {
while (lock_stream[x].load()) {}
stream << "thread #" << x << '\n';
stream.flush();
if (x != 9) lock_stream[x + 1].store(false);
}

Binary file not shown.

Binary file not shown.