mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
3681. [port] Update the Windows build system to support feature
selection and WIN64 builds. This is a work in progress. [RT #34160]
This commit is contained in:
@@ -70,7 +70,7 @@ typedef struct debuglink debuglink_t;
|
||||
struct debuglink {
|
||||
ISC_LINK(debuglink_t) link;
|
||||
const void *ptr[DEBUGLIST_COUNT];
|
||||
unsigned int size[DEBUGLIST_COUNT];
|
||||
size_t size[DEBUGLIST_COUNT];
|
||||
const char *file[DEBUGLIST_COUNT];
|
||||
unsigned int line[DEBUGLIST_COUNT];
|
||||
unsigned int count;
|
||||
@@ -385,10 +385,10 @@ static struct isc__mempoolmethods {
|
||||
* mctx must be locked.
|
||||
*/
|
||||
static inline void
|
||||
add_trace_entry(isc__mem_t *mctx, const void *ptr, unsigned int size FLARG) {
|
||||
add_trace_entry(isc__mem_t *mctx, const void *ptr, size_t size FLARG) {
|
||||
debuglink_t *dl;
|
||||
unsigned int i;
|
||||
unsigned int mysize = size;
|
||||
size_t mysize = size;
|
||||
|
||||
if ((isc_mem_debugging & ISC_MEM_DEBUGTRACE) != 0)
|
||||
fprintf(stderr, isc_msgcat_get(isc_msgcat, ISC_MSGSET_MEM,
|
||||
@@ -443,7 +443,7 @@ add_trace_entry(isc__mem_t *mctx, const void *ptr, unsigned int size FLARG) {
|
||||
}
|
||||
|
||||
static inline void
|
||||
delete_trace_entry(isc__mem_t *mctx, const void *ptr, unsigned int size,
|
||||
delete_trace_entry(isc__mem_t *mctx, const void *ptr, size_t size,
|
||||
const char *file, unsigned int line)
|
||||
{
|
||||
debuglink_t *dl;
|
||||
@@ -610,7 +610,7 @@ more_frags(isc__mem_t *ctx, size_t new_size) {
|
||||
total_size = ctx->mem_target;
|
||||
new = ctx->basic_blocks;
|
||||
ctx->basic_blocks = ctx->basic_blocks->next;
|
||||
frags = total_size / new_size;
|
||||
frags = (int)(total_size / new_size);
|
||||
ctx->stats[new_size].blocks++;
|
||||
ctx->stats[new_size].freefrags += frags;
|
||||
/*
|
||||
|
Reference in New Issue
Block a user