mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-04 03:04:16 +03:00
Remove batch_alloc mallctl
This commit is contained in:
parent
a5db9feee5
commit
99c6e7c7ac
3 changed files with 5 additions and 69 deletions
32
src/ctl.c
32
src/ctl.c
|
|
@ -380,7 +380,6 @@ CTL_PROTO(experimental_arenas_i_pactivep)
|
|||
INDEX_PROTO(experimental_arenas_i)
|
||||
CTL_PROTO(experimental_prof_recent_alloc_max)
|
||||
CTL_PROTO(experimental_prof_recent_alloc_dump)
|
||||
CTL_PROTO(experimental_batch_alloc)
|
||||
CTL_PROTO(experimental_arenas_create_ext)
|
||||
|
||||
#define MUTEX_STATS_CTL_PROTO_GEN(n) \
|
||||
|
|
@ -940,8 +939,7 @@ static const ctl_named_node_t experimental_node[] = {
|
|||
{NAME("utilization"), CHILD(named, experimental_utilization)},
|
||||
{NAME("arenas"), CHILD(indexed, experimental_arenas)},
|
||||
{NAME("arenas_create_ext"), CTL(experimental_arenas_create_ext)},
|
||||
{NAME("prof_recent"), CHILD(named, experimental_prof_recent)},
|
||||
{NAME("batch_alloc"), CTL(experimental_batch_alloc)}};
|
||||
{NAME("prof_recent"), CHILD(named, experimental_prof_recent)}};
|
||||
|
||||
static const ctl_named_node_t root_node[] = {{NAME("version"), CTL(version)},
|
||||
{NAME("epoch"), CTL(epoch)},
|
||||
|
|
@ -4620,34 +4618,6 @@ label_return:
|
|||
return ret;
|
||||
}
|
||||
|
||||
typedef struct batch_alloc_packet_s batch_alloc_packet_t;
|
||||
struct batch_alloc_packet_s {
|
||||
void **ptrs;
|
||||
size_t num;
|
||||
size_t size;
|
||||
int flags;
|
||||
};
|
||||
|
||||
static int
|
||||
experimental_batch_alloc_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
|
||||
void *oldp, size_t *oldlenp, void *newp, size_t newlen) {
|
||||
int ret;
|
||||
|
||||
VERIFY_READ(size_t);
|
||||
|
||||
batch_alloc_packet_t batch_alloc_packet;
|
||||
ASSURED_WRITE(batch_alloc_packet, batch_alloc_packet_t);
|
||||
size_t filled = batch_alloc(batch_alloc_packet.ptrs,
|
||||
batch_alloc_packet.num, batch_alloc_packet.size,
|
||||
batch_alloc_packet.flags);
|
||||
READ(filled, size_t);
|
||||
|
||||
ret = 0;
|
||||
|
||||
label_return:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int
|
||||
prof_stats_bins_i_live_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
|
||||
void *oldp, size_t *oldlenp, void *newp, size_t newlen) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue