mwrap user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANNOUNCE] mwrap 2.2.0
@ 2022-08-22 18:21  5% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2022-08-22 18:21 UTC (permalink / raw)
  To: mwrap-public; +Cc: Sam Saffron

This release adds Ruby 2.7, 3.0, and 3.1 support.

This also fixes breakage in urcu v0.11.4, v0.12.3, and v0.13.1.
While urcu v0.12.4 and v0.13.2 were released 2022-08-18,
old versions will continue to be in distros for a while
(and urcu v0.11.x won't be updated).

There are also several updates ported from the Perl version.

7 changes since v2.1.0 in 2018:
      memalign: perform rcu_read_unlock on ENOMEM
      workaround breakage from urcu v0.11.4
      constify arg for totals_add_rcu
      support Ruby 3.0.x
      disable HeapPageBody count test for Ruby 3.1
      quiet uninitialized and unused variable warnings
      various doc updates

Available via RubyGems and https://80x24.org/mwrap/

(I've Bcc-ed some folks since I'm not sure if their addresses are public)

^ permalink raw reply	[relevance 5%]

* [PATCH] memalign: perform rcu_read_unlock on ENOMEM
@ 2022-08-09  0:19  7% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2022-08-09  0:19 UTC (permalink / raw)
  To: mwrap-public

We must not forget to release RCU read locks even if the
process will probably die, soon, due to ENOMEM.

I noticed this while working on the Perl5/XS port.

Link: https://80x24.org/mwrap-perl/20191102020331.28050-4-e@80x24.org/
---
 ext/mwrap/mwrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/mwrap/mwrap.c b/ext/mwrap/mwrap.c
index 2ee04a5..4575e34 100644
--- a/ext/mwrap/mwrap.c
+++ b/ext/mwrap/mwrap.c
@@ -632,9 +632,9 @@ internal_memalign(void **pp, size_t alignment, size_t size, uintptr_t caller)
 				p = ptr_align(p, alignment);
 			h = ptr2hdr(p);
 			alloc_insert_rcu(l, h, size, real);
-			update_stats_rcu_unlock(l);
 			*pp = p;
 		}
+		update_stats_rcu_unlock(l);
 	}
 
 	return real ? 0 : ENOMEM;

^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-08-09  0:19  7% [PATCH] memalign: perform rcu_read_unlock on ENOMEM Eric Wong
2022-08-22 18:21  5% [ANNOUNCE] mwrap 2.2.0 Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mwrap.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).