* [PATCH] experimental mutex-free wfs usage
@ 2014-08-18 5:17 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2014-08-18 5:17 UTC (permalink / raw)
To: mm; +Cc: Eric Wong
patch sent to lltng-dev
ref: <20140818050254.GA13470@dcvr.yhbt.net>
---
femalloc.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/femalloc.c b/femalloc.c
index 5ca49ec..fb0a04c 100644
--- a/femalloc.c
+++ b/femalloc.c
@@ -1103,7 +1103,7 @@ typedef struct malloc_segment* msegmentptr;
struct malloc_state {
struct cds_list_head arena_node;
- struct cds_wfs_stack remote_free_stack;
+ struct __cds_wfs_stack remote_free_stack;
binmap_t smallmap;
binmap_t treemap;
size_t dvsize;
@@ -2784,12 +2784,6 @@ static inline size_t internal_free(mstate m, void *mem)
return 0;
}
-/* mutex-ignorant version of _cds_wfs_init */
-static inline void
-nomtx_cds_wfs_init(struct cds_wfs_stack *s) {
- s->head = CDS_WFS_END;
-}
-
/* process remote free requests, returns usable bytes freed */
static size_t remote_free_finish(mstate ms) {
size_t usable_bytes_freed = 0;
@@ -3035,7 +3029,7 @@ static mstate init_user_mstate(char* tbase, size_t tsize) {
mchunkptr msp = align_as_chunk(tbase);
mstate m = (mstate)(chunk2mem(msp));
memset(m, 0, msize);
- nomtx_cds_wfs_init(&m->remote_free_stack);
+ ___cds_wfs_init(&m->remote_free_stack);
msp->head = (msize|INUSE_BITS);
m->seg.base = m->least_addr = tbase;
m->seg.size = tsize;
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-18 5:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-18 5:17 [PATCH] experimental mutex-free wfs usage Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox