|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 04 of 22] xenpaging: drop xc.c, remove ASSERT
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1307695626 -7200
# Node ID 53623b8a03575e5e42a7e7d8eaf9020b4a3138f1
# Parent 2d2fe3e2bd73d0c257bb852ecb00052d0dcef301
xenpaging: drop xc.c, remove ASSERT
The ASSERT is not needed, victim is never NULL.
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
diff -r 2d2fe3e2bd73 -r 53623b8a0357 tools/xenpaging/policy_default.c
--- a/tools/xenpaging/policy_default.c Fri Jun 10 10:47:05 2011 +0200
+++ b/tools/xenpaging/policy_default.c Fri Jun 10 10:47:06 2011 +0200
@@ -78,7 +78,6 @@ int policy_choose_victim(xenpaging_t *pa
{
xc_interface *xch = paging->xc_handle;
unsigned long wrap = current_gfn;
- ASSERT(victim != NULL);
do
{
diff -r 2d2fe3e2bd73 -r 53623b8a0357 tools/xenpaging/xc.h
--- a/tools/xenpaging/xc.h Fri Jun 10 10:47:05 2011 +0200
+++ b/tools/xenpaging/xc.h Fri Jun 10 10:47:06 2011 +0200
@@ -30,13 +30,6 @@
#include <xen/mem_event.h>
-#if 1
-#define ASSERT(_p) \
- if ( !(_p) ) { DPRINTF("Assertion '%s' failed, line %d, file %s", #_p , \
- __LINE__, __FILE__); *(int*)0=0; }
-#else
-#define ASSERT(_p) ((void)0)
-#endif
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
[Xen-devel] [PATCH 08 of 22] xenpaging: drop xc.c, move xc_wait_for_event_or_timeout, Olaf Hering
[Xen-devel] [PATCH 04 of 22] xenpaging: drop xc.c, remove ASSERT,
Olaf Hering <=
[Xen-devel] [PATCH 11 of 22] xenpaging: do not bounce p2mt to xenpaging, Olaf Hering
[Xen-devel] [PATCH 06 of 22] xenpaging: drop xc.c, remove xc_wait_for_event, Olaf Hering
[Xen-devel] [PATCH 12 of 22] xenpaging: remove srand call, Olaf Hering
[Xen-devel] [PATCH 10 of 22] xenpaging: correct dropping of pages to avoid full ring buffer, Olaf Hering
[Xen-devel] [PATCH 02 of 22] tools: merge several bitop functions into xc_bitops.h, Olaf Hering
|
|
|
|
|