Re: [lttng-dev] New TLS usage in libgcc_s.so.1, compatibility impact

2024-01-15 Thread Mathieu Desnoyers via Gcc
On 2024-01-15 14:42, Florian Weimer wrote: * Mathieu Desnoyers: [...] General use of lttng should be fine, I think, only the malloc wrapper has this problem. The purpose of the nesting counter TLS variable in the malloc wrapper is to catch situations like this where a global-dynamic TLS

Re: [lttng-dev] New TLS usage in libgcc_s.so.1, compatibility impact

2024-01-15 Thread Mathieu Desnoyers via Gcc
-fexceptions), there is a memory leak. Integration with glibc could avoid this issue, and also help with the longjmp problem, and fix setcontext/swapcontext, too. Thanks, Florian ___ lttng-dev mailing list lttng-...@lists.lttng.org https://lists.lttng.o

Re: [RFC] Bridging the gap between the Linux Kernel Memory Consistency Model (LKMM) and C11/C++11 atomics

2023-08-16 Thread Mathieu Desnoyers via Gcc
race (on C11) but there isn't one on LKMM. AFAIU, the issue with barriers like "thread fence" is that it creates implicit hb relationships between various loads/stores to memory which are typically not relevant to track from a TSAN perspective. Therefore I suspect the working set of loads/stores that would need to be tracked by TSAN would become impractically large. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com

Re: [RFC] Bridging the gap between the Linux Kernel Memory Consistency Model (LKMM) and C11/C++11 atomics

2023-07-07 Thread Mathieu Desnoyers via Gcc
/60418 [4] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86056 [5] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68622 [6] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86072 [7] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63273 -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com

Re: [RFC] Bridging the gap between the Linux Kernel Memory Consistency Model (LKMM) and C11/C++11 atomics

2023-07-05 Thread Mathieu Desnoyers via Gcc
-cases/bugs that can creep up. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com

Re: [lttng-dev] Multiple local register variables w/ same register

2013-11-19 Thread Mathieu Desnoyers
- Original Message - > From: "Mathieu Desnoyers" > To: "Richard Henderson" > Cc: "Jakub Jelinek" , gcc@gcc.gnu.org, "Peter Zijlstra" > , "Catalin Marinas" > , "Nathan Lynch" , > linux-ker...@vger.kernel.

Re: Multiple local register variables w/ same register

2013-11-19 Thread Mathieu Desnoyers
- Original Message - > From: "Richard Henderson" > To: "Peter Zijlstra" , "Mathieu Desnoyers" > > Cc: "Will Deacon" , linux-ker...@vger.kernel.org, > "Catalin Marinas" , > lttng-...@lists.lttng.org, "Natha

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-07 Thread Mathieu Desnoyers
roversial, and I'll be posting them for 3.12 soon. > > After that, I'll post the updated patches that have the conversion as > well as the counter, for RFC and for others to play with. > > -- Steve > > -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-06 Thread Mathieu Desnoyers
how many important sites, insn cache-wise, are being shrinked by this approach. Thanks, Mathieu > > -- Steve > > -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Mathieu Desnoyers
* H. Peter Anvin (h...@linux.intel.com) wrote: > On 08/05/2013 02:28 PM, Mathieu Desnoyers wrote: > > * Linus Torvalds (torva...@linux-foundation.org) wrote: > >> On Mon, Aug 5, 2013 at 12:54 PM, Mathieu Desnoyers > >> wrote: > >>> > >>> I reme

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Mathieu Desnoyers
* Steven Rostedt (rost...@goodmis.org) wrote: > On Mon, 2013-08-05 at 17:28 -0400, Mathieu Desnoyers wrote: > [...] > > My though is that the code above does not cover all jump encodings that > > can be generated by past, current and future x86 assemblers. > > > >

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Mathieu Desnoyers
* Linus Torvalds (torva...@linux-foundation.org) wrote: > On Mon, Aug 5, 2013 at 12:54 PM, Mathieu Desnoyers > wrote: > > > > I remember that choosing between 2 and 5 bytes nop in the asm goto was > > tricky: it had something to do with the fact that gcc doesn't kn

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Mathieu Desnoyers
until further down within compilation phases on architectures with variable instruction size like x86. If we have guarantees that the guessed size of each instruction is an upper bound on the instruction size, this could probably work though. Thoughts ? Thanks, Mathieu -- Mathieu Des

Scalability micro-conference topic proposals (LPC2012)

2012-04-03 Thread Mathieu Desnoyers
://wiki.linuxplumbersconf.org/2012:scaling Best Regards, Mathieu Desnoyers & Paul E. McKenney -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com