A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rollback - the java code should make a THROWF call - adrien
[simgrid.git]
/
src
/
mc
/
mc_diff.c
diff --git
a/src/mc/mc_diff.c
b/src/mc/mc_diff.c
index
dbef02a
..
336897d
100644
(file)
--- a/
src/mc/mc_diff.c
+++ b/
src/mc/mc_diff.c
@@
-856,7
+856,7
@@
static int compare_heap_area_with_type(struct s_mc_diff *state,
int area_size, int check_ignore,
int pointer_level)
{
int area_size, int check_ignore,
int pointer_level)
{
-
+top:
if (is_stack(real_area1) && is_stack(real_area2))
return 0;
if (is_stack(real_area1) && is_stack(real_area2))
return 0;
@@
-906,10
+906,9
@@
static int compare_heap_area_with_type(struct s_mc_diff *state,
case DW_TAG_typedef:
case DW_TAG_const_type:
case DW_TAG_volatile_type:
case DW_TAG_typedef:
case DW_TAG_const_type:
case DW_TAG_volatile_type:
- return compare_heap_area_with_type(state, real_area1, real_area2,
- snapshot1, snapshot2, previous,
- type->subtype, area_size, check_ignore,
- pointer_level);
+ // Poor man's TCO:
+ type = type->subtype;
+ goto top;
break;
case DW_TAG_array_type:
subtype = type->subtype;
break;
case DW_TAG_array_type:
subtype = type->subtype;