Page MenuHomeFreeBSD
Feed Advanced Search

Thu, Nov 23

olce.freebsd_certner.fr added a comment to D41492: Remove empty header annotations in Symbol.map files.

Trivial change that should go in. That said, that may disrupt some changes @imp is doing, so he probably will have the final say as to when this should be merged.

Thu, Nov 23, 2:55 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41492: Remove empty header annotations in Symbol.map files.

Any update?

Thu, Nov 23, 2:49 PM · Contributor Reviews (src)

Thu, Nov 9

vangyzen updated subscribers of D41421: Update jemalloc to version 5.3.0.

Thank you for asking, but I didn't actually do the last update. @jasone did it, but had to revert it. I simply un-reverted his work.

Thu, Nov 9, 10:26 PM · Contributor Reviews (src)

Tue, Nov 7

lwhsu added a reviewer for D41421: Update jemalloc to version 5.3.0: vangyzen.

@vangyzen: are you interested in reviewing this? as you did the update jemalloc to 5.2.1.

Tue, Nov 7, 3:17 PM · Contributor Reviews (src)

Sep 9 2023

minsoochoo0122_proton.me added a comment to D41421: Update jemalloc to version 5.3.0.

Parent revision D41461 is closed. Now we can test this on local machines on -CURRENT.

I've been testing this on main and stable/13 (with some tweaks). If there are any specific tests I can do that would be helpful let me know

In the release notes, there are some new features added in jemalloc 5.3.0. For example,

  • Make the behavior of realloc(ptr, 0) configurable with opt.zero_realloc
  • Add the thread.idle mallctl which hints that the calling thread will be idle for a nontrivial period of time.
  • Add mallctl interfaces:
    • opt.zero_realloc (@davidtgoldblatt)
    • opt.cache_oblivious (@interwq)
    • opt.prof_leak_error (@yunxuo)
    • opt.stats_interval (@interwq)
    • opt.stats_interval_opts (@interwq)
    • opt.tcache_max (@interwq)
    • opt.trust_madvise (@azat)
    • prof.prefix (@zhxchen17)
    • stats.zero_reallocs (@davidtgoldblatt)
    • thread.idle (@davidtgoldblatt)
    • thread.peak.{read,reset} (@davidtgoldblatt)

and so on.

It would be really nice if we can test this against with the tests under /usr/tests . I know it is still very tricky to run it. If you are interested, please check the scripts at https://github.com/freebsd/freebsd-ci and let me know (and/or -testing mailing list) if you have any questions.

By the way, because this is not a major version bump (5.x.x), will this version bump be abled to be MFCed to stable/14?

Theoretically, yes, but it would be nice to check the compatibility thoroughly.

Sep 9 2023, 5:29 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added inline comments to D41421: Update jemalloc to version 5.3.0.
Sep 9 2023, 12:59 AM · Contributor Reviews (src)

Sep 8 2023

jrtc27 added inline comments to D41421: Update jemalloc to version 5.3.0.
Sep 8 2023, 1:29 AM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41421: Update jemalloc to version 5.3.0.
  • Use memalign from jemalloc
Sep 8 2023, 1:19 AM · Contributor Reviews (src)

Sep 6 2023

brooks added a comment to D41421: Update jemalloc to version 5.3.0.

I think it might make sense to split the switch to the jemalloc memalign() into a separate commit.

Sep 6 2023, 8:03 PM · Contributor Reviews (src)

Sep 4 2023

lwhsu added a comment to D41421: Update jemalloc to version 5.3.0.

Parent revision D41461 is closed. Now we can test this on local machines on -CURRENT.

I've been testing this on main and stable/13 (with some tweaks). If there are any specific tests I can do that would be helpful let me know

In the release notes, there are some new features added in jemalloc 5.3.0. For example,

  • Make the behavior of realloc(ptr, 0) configurable with opt.zero_realloc
  • Add the thread.idle mallctl which hints that the calling thread will be idle for a nontrivial period of time.
  • Add mallctl interfaces:
    • opt.zero_realloc (@davidtgoldblatt)
    • opt.cache_oblivious (@interwq)
    • opt.prof_leak_error (@yunxuo)
    • opt.stats_interval (@interwq)
    • opt.stats_interval_opts (@interwq)
    • opt.tcache_max (@interwq)
    • opt.trust_madvise (@azat)
    • prof.prefix (@zhxchen17)
    • stats.zero_reallocs (@davidtgoldblatt)
    • thread.idle (@davidtgoldblatt)
    • thread.peak.{read,reset} (@davidtgoldblatt)

and so on.

Sep 4 2023, 5:40 PM · Contributor Reviews (src)

Sep 2 2023

minsoochoo0122_proton.me added a comment to D41421: Update jemalloc to version 5.3.0.

Parent revision D41461 is closed. Now we can test this on local machines on -CURRENT.

I've been testing this on main and stable/13 (with some tweaks). If there are any specific tests I can do that would be helpful let me know

Sep 2 2023, 3:09 AM · Contributor Reviews (src)

Aug 26 2023

instructionset_gmail.com added a comment to D41421: Update jemalloc to version 5.3.0.

Parent revision D41461 is closed. Now we can test this on local machines on -CURRENT.

Aug 26 2023, 5:58 AM · Contributor Reviews (src)

Aug 21 2023

minsoochoo0122_proton.me added a comment to D41421: Update jemalloc to version 5.3.0.

Parent revision D41461 is closed. Now we can test this on local machines on -CURRENT.

Aug 21 2023, 1:48 AM · Contributor Reviews (src)

Aug 20 2023

kib closed D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 20 2023, 10:45 PM · Contributor Reviews (src)
kib added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.

You may send me the complete git patch by mail. Please ensure that the author metadata is correctly filled. Also it would be useful to add tags like Differential revision: etc.

Aug 20 2023, 9:26 PM · Contributor Reviews (src)
kib accepted D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 20 2023, 9:24 PM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41461: libc: make pthread_getname_np and _pthread_getname_np available.

Stores null string in name parameter for stub function.

Aug 20 2023, 9:19 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
In D41461#945982, @kib wrote:

Is there any possible way to store null string in _pthread_stubs.c? I can't figure out how to store null string using STUB_FUNC3.

I do not understand neither your questions, nor can I guess the possible confusion behind them. Would it be simpler if I provide the compilable (not tested) changes for _pthread_stub.c?

diff --git a/lib/libc/gen/_pthread_stubs.c b/lib/libc/gen/_pthread_stubs.c
index 6741c6a5ec51..3fc0817b8655 100644
--- a/lib/libc/gen/_pthread_stubs.c
+++ b/lib/libc/gen/_pthread_stubs.c
@@ -58,6 +58,7 @@ static int		stub_fail(void);
 static int		stub_true(void);
 static void		stub_exit(void);
 static int		stub_esrch(void);
+static int		stub_getname_np(pthread_t, char *, size_t);
 
 #define	PJT_DUAL_ENTRY(entry)	\
 	(pthread_func_t)entry, (pthread_func_t)entry
@@ -131,6 +132,7 @@ pthread_func_entry_t __thr_jtable[PJT_MAX] = {
 	[PJT_MUTEXATTR_SETROBUST] =	{PJT_DUAL_ENTRY(stub_zero)},
 	[PJT_GETTHREADID_NP] =		{PJT_DUAL_ENTRY(stub_zero)},
 	[PJT_ATTR_GET_NP] =		{PJT_DUAL_ENTRY(stub_esrch)},
+	[PJT_GETNAME_NP] =		{PJT_DUAL_ENTRY(stub_getname_np)},
 };
 
 /*
@@ -289,6 +291,7 @@ STUB_FUNC3(__pthread_cleanup_push_imp, PJT_CLEANUP_PUSH_IMP, void, void *,
 STUB_FUNC1(_pthread_cancel_enter, PJT_CANCEL_ENTER, void, int)
 STUB_FUNC1(_pthread_cancel_leave, PJT_CANCEL_LEAVE, void, int)
 STUB_FUNC2(pthread_attr_get_np, PJT_ATTR_GET_NP, int, pthread_t, pthread_attr_t *)
+STUB_FUNC3(pthread_gettname_np,	PJT_GETNAME_NP, int, pthread_t, char *, size_t)
 
 static int
 stub_zero(void)
@@ -337,3 +340,13 @@ stub_esrch(void)
 {
 	return (ESRCH);
 }
+
+static int
+stub_getname_np(pthread_t thread, char *buf, size_t len)
+{
+	if (thread != &main_thread)
+		return (ESRCH);
+	if (len >= 1)
+		buf[0] = '\0';
+	return (0);
+}
Aug 20 2023, 9:18 PM · Contributor Reviews (src)
kib added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.

Is there any possible way to store null string in _pthread_stubs.c? I can't figure out how to store null string using STUB_FUNC3.

I do not understand neither your questions, nor can I guess the possible confusion behind them. Would it be simpler if I provide the compilable (not tested) changes for _pthread_stub.c?

Aug 20 2023, 6:44 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
In D41461#945957, @kib wrote:
In D41461#945942, @kib wrote:
In D41461#945937, @kib wrote:

This is still wrong IMO. The main case is to return empty name for main thread, and it does not matter much if we do not detect invalid thread handle.

As was said before, stub pthread_getname_np() should store nul string in the target buffer.

How can I store null string to the name parameter? Does stub_null works for parameters as well?

You do if (len >= 1) name[0] = '\0'; as usual. What is the problem? stub_null() cannot be used, of course.

Sorry, my question was unclear. In `lib/libthr/thread/thr_info.c", I see

if (len > 0)
    buf[0] = '\0';

But I cannot find any file to write this for the stub function. Where can I write this code for stub functions? Like lib/libc/gen/__pthread_mutex_init_calloc_cb_stub.c, should I implement the stub function in a new file?

What is wrong with libc/gen/_pthread_stubs.c?

Example:

/* lib/libc/gen/__pthread_getname_np_stub.c */
#include <sys/cdefs.h>
#include <pthread.h>
#include <errno.h>
#include "libc_private.h"

int
_pthread_getname_np_stub(pthread_t thread, char *buf, size_t len)
{
    if (len > 0)
        buf[0] = '\0';
    return (ESRCH);
This should be `return (0);`

}

Aug 20 2023, 6:08 PM · Contributor Reviews (src)
kib added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
In D41461#945942, @kib wrote:
In D41461#945937, @kib wrote:

This is still wrong IMO. The main case is to return empty name for main thread, and it does not matter much if we do not detect invalid thread handle.

As was said before, stub pthread_getname_np() should store nul string in the target buffer.

How can I store null string to the name parameter? Does stub_null works for parameters as well?

You do if (len >= 1) name[0] = '\0'; as usual. What is the problem? stub_null() cannot be used, of course.

Sorry, my question was unclear. In `lib/libthr/thread/thr_info.c", I see

if (len > 0)
    buf[0] = '\0';

But I cannot find any file to write this for the stub function. Where can I write this code for stub functions? Like lib/libc/gen/__pthread_mutex_init_calloc_cb_stub.c, should I implement the stub function in a new file?

What is wrong with libc/gen/_pthread_stubs.c?

Aug 20 2023, 5:36 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
In D41461#945942, @kib wrote:
In D41461#945937, @kib wrote:

This is still wrong IMO. The main case is to return empty name for main thread, and it does not matter much if we do not detect invalid thread handle.

As was said before, stub pthread_getname_np() should store nul string in the target buffer.

How can I store null string to the name parameter? Does stub_null works for parameters as well?

You do if (len >= 1) name[0] = '\0'; as usual. What is the problem? stub_null() cannot be used, of course.

Aug 20 2023, 5:05 PM · Contributor Reviews (src)
kib added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
In D41461#945937, @kib wrote:

This is still wrong IMO. The main case is to return empty name for main thread, and it does not matter much if we do not detect invalid thread handle.

As was said before, stub pthread_getname_np() should store nul string in the target buffer.

How can I store null string to the name parameter? Does stub_null works for parameters as well?

Aug 20 2023, 3:56 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
In D41461#945937, @kib wrote:

This is still wrong IMO. The main case is to return empty name for main thread, and it does not matter much if we do not detect invalid thread handle.

As was said before, stub pthread_getname_np() should store nul string in the target buffer.

Aug 20 2023, 3:50 PM · Contributor Reviews (src)
kib added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.

This is still wrong IMO. The main case is to return empty name for main thread, and it does not matter much if we do not detect invalid thread handle.

Aug 20 2023, 3:23 PM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41461: libc: make pthread_getname_np and _pthread_getname_np available.

Using stub_esrch when an invalid thread comes a parameter.

Aug 20 2023, 2:14 AM · Contributor Reviews (src)

Aug 17 2023

emaste added a reviewer for D41492: Remove empty header annotations in Symbol.map files: imp.
Aug 17 2023, 2:56 PM · Contributor Reviews (src)
minsoochoo0122_proton.me requested review of D41492: Remove empty header annotations in Symbol.map files.
Aug 17 2023, 2:06 PM · Contributor Reviews (src)
minsoochoo0122_proton.me planned changes to D41492: Remove empty header annotations in Symbol.map files.
Aug 17 2023, 2:06 PM · Contributor Reviews (src)
minsoochoo0122_proton.me requested review of D41492: Remove empty header annotations in Symbol.map files.
Aug 17 2023, 2:05 PM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41421: Update jemalloc to version 5.3.0.

Updating diff file to conform recent changes in lib/libc/stdlib/malloc

Aug 17 2023, 2:05 AM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.

pthread_getname_np returns 0 for success otherwise error code.

You didn't change the implementation, just the prototype? It's still not writing to the string, and it's reporting success even for garbage input threads.

Sorry, I'm new to contributing base system, and I don't understand which implementation you mean. From the code I read, pthread_getname_np is symbol of _thr_getname_np defined in lib/libthr/thread/thr_info.c, and it exports to libc. Is there any addition work to be done in stub? Thanks.

The stub needs to be a minimal implementation when there are no threads that satisfies the API documentation in the manpage. stub_zero does not do that, because it (a) doesn't validate the thread (b) doesn't initialise the buffer. This means that (a) if a caller provides junk to the function it returns 0 for success rather than ESRCH for failure (b) if a caller tries to use the buffer even after it gave it a pthread_t of &main_thread it'll be reading uninitialised junk (and may run off the end of the buffer if there doesn't happen to be a 0 byte in there). In short, stub_zero never works properly to implement pthread_getname_np.

Aug 17 2023, 12:11 AM · Contributor Reviews (src)

Aug 16 2023

jrtc27 added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.

pthread_getname_np returns 0 for success otherwise error code.

You didn't change the implementation, just the prototype? It's still not writing to the string, and it's reporting success even for garbage input threads.

Sorry, I'm new to contributing base system, and I don't understand which implementation you mean. From the code I read, pthread_getname_np is symbol of _thr_getname_np defined in lib/libthr/thread/thr_info.c, and it exports to libc. Is there any addition work to be done in stub? Thanks.

Aug 16 2023, 11:47 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.

pthread_getname_np returns 0 for success otherwise error code.

You didn't change the implementation, just the prototype? It's still not writing to the string, and it's reporting success even for garbage input threads.

Aug 16 2023, 11:43 PM · Contributor Reviews (src)
jrtc27 added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.

pthread_getname_np returns 0 for success otherwise error code.

Aug 16 2023, 11:23 PM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41461: libc: make pthread_getname_np and _pthread_getname_np available.

pthread_getname_np returns 0 for success otherwise error code.

Aug 16 2023, 11:22 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added inline comments to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 16 2023, 9:58 PM · Contributor Reviews (src)
kib added inline comments to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 16 2023, 7:30 PM · Contributor Reviews (src)
jrtc27 added inline comments to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 16 2023, 6:54 PM · Contributor Reviews (src)
kib added inline comments to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 16 2023, 6:43 PM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41461: libc: make pthread_getname_np and _pthread_getname_np available.

Don't export _pthread_getname_np

Aug 16 2023, 6:05 PM · Contributor Reviews (src)
kib added inline comments to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 16 2023, 5:36 PM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41421: Update jemalloc to version 5.3.0.

Removed gnu11 flag and fixed gnu99 incompatibility

Aug 16 2023, 2:07 AM · Contributor Reviews (src)

Aug 15 2023

minsoochoo0122_proton.me added inline comments to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 15 2023, 8:01 PM · Contributor Reviews (src)
kib added inline comments to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 15 2023, 4:54 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added inline comments to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 15 2023, 12:27 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added inline comments to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 15 2023, 12:26 PM · Contributor Reviews (src)
kib added inline comments to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 15 2023, 10:25 AM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41461: libc: make pthread_getname_np and _pthread_getname_np available.

pthread_getname_np goes to FBSD_1.6 to match version in pthread.map
pthread_getname_np STUB_FUNC3 not STUB_FUNC2 since it takes 3 parameters

Aug 15 2023, 6:23 AM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
In D41461#944269, @imp wrote:

I wonder why these were not exported... Is there any indication as to why? Was it intentoinal or an oversight?

Aug 15 2023, 5:24 AM · Contributor Reviews (src)
jrtc27 added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.
In D41461#944269, @imp wrote:

I wonder why these were not exported... Is there any indication as to why? Was it intentoinal or an oversight?

Aug 15 2023, 3:01 AM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41421: Update jemalloc to version 5.3.0.

Created separate revision for pthread_getname_np and _pthread_getname_np. This revision depends on D41461

Aug 15 2023, 2:41 AM · Contributor Reviews (src)
emaste updated subscribers of D41461: libc: make pthread_getname_np and _pthread_getname_np available.
Aug 15 2023, 2:40 AM · Contributor Reviews (src)
imp added a comment to D41461: libc: make pthread_getname_np and _pthread_getname_np available.

I wonder why these were not exported... Is there any indication as to why? Was it intentoinal or an oversight?

Aug 15 2023, 2:33 AM · Contributor Reviews (src)
minsoochoo0122_proton.me added a reviewer for D41461: libc: make pthread_getname_np and _pthread_getname_np available: Contributor Reviews (src).
Aug 15 2023, 2:27 AM · Contributor Reviews (src)

Aug 14 2023

jrtc27 added inline comments to D41421: Update jemalloc to version 5.3.0.
Aug 14 2023, 9:37 PM · Contributor Reviews (src)
brooks added inline comments to D41421: Update jemalloc to version 5.3.0.
Aug 14 2023, 9:11 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added inline comments to D41421: Update jemalloc to version 5.3.0.
Aug 14 2023, 4:52 PM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41421: Update jemalloc to version 5.3.0.

Fixed build error with missing _pthread_getname_np symbol reference

Aug 14 2023, 4:46 PM · Contributor Reviews (src)
brooks added a comment to D41421: Update jemalloc to version 5.3.0.

It seems extremely late in the release to be doing a malloc update.

Aug 14 2023, 4:31 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41421: Update jemalloc to version 5.3.0.

I still get error

cd /usr/src; _PARALLEL_SUBDIR_OK=1 time env MACHINE_ARCH=amd64  MACHINE=amd64  CPUTYPE= BUILD_TOOLS_META=.NOMETA CC="cc -target x86_64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" CXX="c++  -target x86_64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin"  CPP="cpp -target x86_64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin"  AS="as" AR="ar" ELFCTL="elfctl" LD="ld"  LLVM_LINK="" NM=nm OBJCOPY="objcopy"  RANLIB=ranlib STRINGS=  SIZE="size" STRIPBIN="strip"  INSTALL="install -U"  PATH=/usr/obj/usr/src/amd64.amd64/tmp/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin  SYSROOT=/usr/obj/usr/src/amd64.amd64/tmp make  -f Makefile.inc1  BWPHASE=everything  DESTDIR=/usr/obj/usr/src/amd64.amd64/tmp all
(cd /usr/src/lib/csu/tests/dynamic &&  DEPENDFILE=.depend.init_test  NO_SUBDIR=1 make -f /usr/src/lib/csu/tests/dynamic/Makefile _RECURSING_PROGS=t  PROG=init_test )
Building /usr/obj/usr/src/amd64.amd64/lib/csu/tests/dynamic/init_test.o
Building /usr/obj/usr/src/amd64.amd64/lib/csu/tests/dynamic/init_test.full
ld: error: undefined reference due to --no-allow-shlib-undefined: _pthread_getname_np
>>> referenced by /usr/obj/usr/src/amd64.amd64/tmp/lib/libc.so.7
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Aug 14 2023, 5:25 AM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41421: Update jemalloc to version 5.3.0.

Updated FREEBSD-diffs

Aug 14 2023, 5:16 AM · Contributor Reviews (src)

Aug 12 2023

minsoochoo0122_proton.me added a comment to D41421: Update jemalloc to version 5.3.0.
In D41421#943650, @imp wrote:

Thanks for the work! One thing I would like to mention is that it seems having some issue building or running on 32-bit older CURRENT: https://github.com/jemalloc/jemalloc/pull/2228

I did some test on 32-bit FreeBSD and I found out that when clock_gettime is used on 64bit machine but compiled in 32bit, it sets tv_sec (time_t) as -1. On 32bit FreeBSD, clock_gettime works as expected.

that seems like it's a bug. On powerpc and amrv7 tv_sec should be the same. On i386, tv_sec is only32-bit, but we still have a dozen years left until it's inadequate. Can you finle a bug, if you haven't already, with a way to reproduce this?

Aug 12 2023, 10:02 PM · Contributor Reviews (src)
imp added a comment to D41421: Update jemalloc to version 5.3.0.

Thanks for the work! One thing I would like to mention is that it seems having some issue building or running on 32-bit older CURRENT: https://github.com/jemalloc/jemalloc/pull/2228

I did some test on 32-bit FreeBSD and I found out that when clock_gettime is used on 64bit machine but compiled in 32bit, it sets tv_sec (time_t) as -1. On 32bit FreeBSD, clock_gettime works as expected.

Aug 12 2023, 8:53 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41421: Update jemalloc to version 5.3.0.

Thanks for the work! One thing I would like to mention is that it seems having some issue building or running on 32-bit older CURRENT: https://github.com/jemalloc/jemalloc/pull/2228

Aug 12 2023, 2:34 PM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41421: Update jemalloc to version 5.3.0.

Thanks for the work! One thing I would like to mention is that it seems having some issue building or running on 32-bit older CURRENT: https://github.com/jemalloc/jemalloc/pull/2228

Aug 12 2023, 5:23 AM · Contributor Reviews (src)

Aug 11 2023

lwhsu added a comment to D41421: Update jemalloc to version 5.3.0.

Thanks for the work! One thing I would like to mention is that it seems having some issue building or running on 32-bit older CURRENT: https://github.com/jemalloc/jemalloc/pull/2228

Aug 11 2023, 6:10 AM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D41421: Update jemalloc to version 5.3.0.

Solved libc build error. However, linking fails with error that _pthread_getname_np is undefined symbol.

Building /usr/obj/usr/src/amd64.amd64/lib/csu/tests/dynamic/init_test.o
Building /usr/obj/usr/src/amd64.amd64/lib/csu/tests/dynamic/init_test.full
ld: error: undefined reference due to --no-allow-shlib-undefined: _pthread_getname_np
>>> referenced by /usr/obj/usr/src/amd64.amd64/tmp/lib/libc.so.7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Aug 11 2023, 5:56 AM · Contributor Reviews (src)
minsoochoo0122_proton.me added a comment to D41421: Update jemalloc to version 5.3.0.

When I build new jemalloc, clang generates an error:

jemalloc_prof_sys.c:310:9: error: call to undeclared function 'pthread_getname_np'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
        return pthread_getname_np(pthread_self(), buf, limit);
               ^
jemalloc_prof_sys.c:310:9: note: did you mean '_pthread_getname_np'?
/usr/src/include/pthread.h:305:6: note: '_pthread_getname_np' declared here
int             pthread_getname_np(pthread_t, char *, size_t);
                ^
/usr/src/lib/libc/include/namespace.h:141:30: note: expanded from macro 'pthread_getname_np'
#define         pthread_getname_np              _pthread_getname_np
                                                ^
1 error generated.
*** [jemalloc_prof_sys.o] Error code 1

although <pthread.h> is already included. Any ideas?

Aug 11 2023, 5:32 AM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the summary of D41421: Update jemalloc to version 5.3.0.
Aug 11 2023, 5:23 AM · Contributor Reviews (src)

Aug 5 2023

jlduran_gmail.com updated the diff for D41287: arm64: Fix typo in comments.

Rebase.

Aug 5 2023, 5:27 PM · Contributor Reviews (src)

Aug 3 2023

jlduran_gmail.com updated the test plan for D41287: arm64: Fix typo in comments.
Aug 3 2023, 11:14 PM · Contributor Reviews (src)

Aug 1 2023

jlduran_gmail.com requested review of D41287: arm64: Fix typo in comments.
Aug 1 2023, 8:39 PM · Contributor Reviews (src)

Jul 20 2023

emaste closed D41106: Remove perforce tools and references.
Jul 20 2023, 5:34 PM · Contributor Reviews (src)
emaste accepted D41106: Remove perforce tools and references.
Jul 20 2023, 5:20 PM · Contributor Reviews (src)
olce.freebsd_certner.fr accepted D41106: Remove perforce tools and references.

Seems reasonable, and with some quick grep and find, I didn't find anything else to remove.

Jul 20 2023, 4:42 PM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the summary of D41106: Remove perforce tools and references.
Jul 20 2023, 1:24 AM · Contributor Reviews (src)
minsoochoo0122_proton.me added a reviewer for D41106: Remove perforce tools and references: Contributor Reviews (src).
Jul 20 2023, 1:23 AM · Contributor Reviews (src)

Jul 18 2023

minsoochoo0122_proton.me retitled D34766: lio_listio(2): add __restrict keyword to the parameter `struct sigvent *sig` from lio_listio(2): add __restrict keyword to third parameter struct sigvent *sig to lio_listio(2): add __restrict keyword to the parameter `struct sigvent *sig`.
Jul 18 2023, 8:10 PM · Contributor Reviews (src)
minsoochoo0122_proton.me updated the diff for D39459: Move PTHREAD_ values to limits.h to conform POSIX..

New diff file

Jul 18 2023, 8:02 PM · Contributor Reviews (src)
minsoochoo0122_proton.me retitled D39459: Move PTHREAD_ values to limits.h to conform POSIX. from Define some PTHREAD_ values in limits.h to conform POSIX. to Move PTHREAD_ values to limits.h to conform POSIX..
Jul 18 2023, 7:50 PM · Contributor Reviews (src)

Jul 8 2023

kib closed D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.
Jul 8 2023, 6:10 AM · Contributor Reviews (src)
kib accepted D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.
Jul 8 2023, 3:56 AM · Contributor Reviews (src)
kib added inline comments to D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.
Jul 8 2023, 3:55 AM · Contributor Reviews (src)

Jul 7 2023

becker.greg_att.net added inline comments to D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.
Jul 7 2023, 10:34 PM · Contributor Reviews (src)
becker.greg_att.net updated the diff for D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.

I reverted all the m_qidx changes, lost a wee bit of perf across all mutex flavors, but numbers still look pretty good.

Jul 7 2023, 10:33 PM · Contributor Reviews (src)
kib added inline comments to D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.
Jul 7 2023, 5:26 PM · Contributor Reviews (src)
becker.greg_att.net updated the diff for D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.

Updated diff to provide full context via diff -U99999999 ...

Jul 7 2023, 4:47 PM · Contributor Reviews (src)
kib added a comment to D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.

Please, when uploading patches to phabricator, do git diff -U99999999, to provide enough context. I will reply to the patch after you re-upload it.

Jul 7 2023, 4:35 PM · Contributor Reviews (src)
jhb accepted D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.
Jul 7 2023, 4:29 PM · Contributor Reviews (src)
becker.greg_att.net requested review of D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.
Jul 7 2023, 4:01 PM · Contributor Reviews (src)
kib closed D40900: Fix to allow building libthr without -D_PTHREADS_INVARIANTS defined.
Jul 7 2023, 1:47 AM · Contributor Reviews (src)

Jul 6 2023

jhb accepted D40900: Fix to allow building libthr without -D_PTHREADS_INVARIANTS defined.

I think releng maintains their own checklist of things to do for a new stable branch, I've tagged them here so they can think about toggling this setting (presumably in src.opts.mk) when creating new stable branches.

Jul 6 2023, 11:42 PM · Contributor Reviews (src)
kib added inline comments to D40900: Fix to allow building libthr without -D_PTHREADS_INVARIANTS defined.
Jul 6 2023, 10:53 PM · Contributor Reviews (src)
kib added a comment to D40900: Fix to allow building libthr without -D_PTHREADS_INVARIANTS defined.

Please handle jhb' suggestions, then you can git am the patch to me.

Jul 6 2023, 10:51 PM · Contributor Reviews (src)
becker.greg_att.net updated the diff for D40900: Fix to allow building libthr without -D_PTHREADS_INVARIANTS defined.

Thanks John, I've updated the patch as requested, including the tools/build/options change (I wasn't aware of that, pretty cool!)

Jul 6 2023, 10:50 PM · Contributor Reviews (src)
mjg added a comment to D40900: Fix to allow building libthr without -D_PTHREADS_INVARIANTS defined.

also the procedure for branching a stable needs to include this, but from my grep i don't see anything in src for malloc_production which has the desired treatment

Jul 6 2023, 10:15 PM · Contributor Reviews (src)
jhb accepted D40900: Fix to allow building libthr without -D_PTHREADS_INVARIANTS defined.

I would perhaps call the option MK_PTHREADS_ASSERTIONS to match MK_LLVM_ASSERTIONS in terms of naming.

Jul 6 2023, 9:59 PM · Contributor Reviews (src)
mjg accepted D40900: Fix to allow building libthr without -D_PTHREADS_INVARIANTS defined.

LGTM but someone else should also take a look

Jul 6 2023, 9:39 PM · Contributor Reviews (src)
becker.greg_att.net requested review of D40900: Fix to allow building libthr without -D_PTHREADS_INVARIANTS defined.
Jul 6 2023, 9:32 PM · Contributor Reviews (src)