Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/sljit/dist/sljit_src Alloc/free macros in t...
details: https://anonhg.NetBSD.org/src/rev/8402ab7ce53d
branches: trunk
changeset: 345459:8402ab7ce53d
user: alnsn <alnsn%NetBSD.org@localhost>
date: Sun May 29 17:19:01 2016 +0000
description:
Alloc/free macros in the new sljit version take two arguments.
diffstat:
sys/external/bsd/sljit/dist/sljit_src/sljitConfig.h | 6 +++---
sys/external/bsd/sljit/dist/sljit_src/sljitUtils.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (41 lines):
diff -r 7bca845eeaf5 -r 8402ab7ce53d sys/external/bsd/sljit/dist/sljit_src/sljitConfig.h
--- a/sys/external/bsd/sljit/dist/sljit_src/sljitConfig.h Sun May 29 17:17:48 2016 +0000
+++ b/sys/external/bsd/sljit/dist/sljit_src/sljitConfig.h Sun May 29 17:19:01 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sljitConfig.h,v 1.13 2016/05/29 17:09:33 alnsn Exp $ */
+/* $NetBSD: sljitConfig.h,v 1.14 2016/05/29 17:19:01 alnsn Exp $ */
/*
* Stack-less Just-In-Time compiler
@@ -60,11 +60,11 @@
#include <machine/sljit_machdep.h>
#if defined(_KERNEL) && !defined(SLJIT_MALLOC)
-#define SLJIT_MALLOC(size) malloc((size), M_TEMP, M_WAITOK)
+#define SLJIT_MALLOC(size, allocator_data) malloc((size), M_TEMP, M_WAITOK)
#endif
#if defined(_KERNEL) && !defined(SLJIT_FREE)
-#define SLJIT_FREE(ptr) free((ptr), M_TEMP)
+#define SLJIT_FREE(ptr, allocator_data) free((ptr), M_TEMP)
#endif
#if defined(_KERNEL) && !defined(SLJIT_CACHE_FLUSH)
diff -r 7bca845eeaf5 -r 8402ab7ce53d sys/external/bsd/sljit/dist/sljit_src/sljitUtils.c
--- a/sys/external/bsd/sljit/dist/sljit_src/sljitUtils.c Sun May 29 17:17:48 2016 +0000
+++ b/sys/external/bsd/sljit/dist/sljit_src/sljitUtils.c Sun May 29 17:19:01 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sljitUtils.c,v 1.8 2016/05/29 17:09:33 alnsn Exp $ */
+/* $NetBSD: sljitUtils.c,v 1.9 2016/05/29 17:19:01 alnsn Exp $ */
/*
* Stack-less Just-In-Time compiler
@@ -294,7 +294,7 @@
v = uvm_km_alloc(kernel_map, max_limit, PAGE_SIZE, UVM_KMF_WIRED|UVM_KMF_ZERO);
base.ptr = (void *)v;
if (base.ptr == NULL) {
- SLJIT_FREE(stack);
+ SLJIT_FREE(stack, allocator_data);
return NULL;
}
stack->base = base.uw;
Home |
Main Index |
Thread Index |
Old Index