"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-tree.c" between
stress-ng-0.09.52.tar.xz and stress-ng-0.09.54.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

stress-tree.c  (stress-ng-0.09.52.tar.xz):stress-tree.c  (stress-ng-0.09.54.tar.xz)
skipping to change at line 93 skipping to change at line 93
MIN_TREE_SIZE, MAX_TREE_SIZE); MIN_TREE_SIZE, MAX_TREE_SIZE);
return set_setting("tree-size", TYPE_ID_UINT64, &tree_size); return set_setting("tree-size", TYPE_ID_UINT64, &tree_size);
} }
#if defined(HAVE_LIB_BSD) && !defined(__APPLE__) #if defined(HAVE_LIB_BSD) && !defined(__APPLE__)
/* /*
* stress_tree_handler() * stress_tree_handler()
* SIGALRM generic handler * SIGALRM generic handler
*/ */
static void MLOCKED_TEXT stress_tree_handler(int dummy) static void MLOCKED_TEXT stress_tree_handler(int signum)
{ {
(void)dummy; (void)signum;
if (do_jmp) { if (do_jmp) {
do_jmp = false; do_jmp = false;
siglongjmp(jmp_env, 1); /* Ugly, bounce back */ siglongjmp(jmp_env, 1); /* Ugly, bounce back */
} }
} }
static int tree_node_cmp_fwd(struct tree_node *n1, struct tree_node *n2) static int tree_node_cmp_fwd(struct tree_node *n1, struct tree_node *n2)
{ {
if (n1->value == n2->value) if (n1->value == n2->value)
skipping to change at line 390 skipping to change at line 390
head->u.avl.right; head->u.avl.right;
} }
return NULL; return NULL;
} }
static void avl_remove_tree(struct tree_node *node) static void avl_remove_tree(struct tree_node *node)
{ {
if (node) { if (node) {
avl_remove_tree(node->u.avl.left); avl_remove_tree(node->u.avl.left);
avl_remove_tree(node->u.avl.right); avl_remove_tree(node->u.avl.right);
node->u.avl.left = NULL;
node->u.avl.right = NULL;
} }
} }
static void stress_tree_avl( static void stress_tree_avl(
const args_t *args, const args_t *args,
const size_t n, const size_t n,
struct tree_node *data) struct tree_node *data)
{ {
size_t i; size_t i;
struct tree_node *node, *head = NULL; struct tree_node *node, *head = NULL;
 End of changes. 3 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)