Skip to content

Commit

Permalink
fix: Set addedPCR=0 for all objects when begin mark scan
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Dec 9, 2024
1 parent bb6393d commit dfacd9e
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/runtime/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void removePCR(Common *obj, int scc)
free(bucket);
}
free(head);
break;
return;
}
else
{
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/fred/Translator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ object Translator {

s"""|if ($This->color == kGray) return;
|$This->color = kGray;
|$This->addedPCR = 0;
|$recMarks""".stripMargin
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/test/resources/snapshot/exec/basic-cycle.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/test/resources/snapshot/exec/basic-main.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/test/resources/snapshot/exec/contrived-needs-sorting.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/test/resources/snapshot/exec/immediate-drop.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/test/resources/snapshot/exec/lazy-mark-scan-83wesh.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/test/resources/snapshot/gen/complex-liudr567.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/test/resources/snapshot/gen/good-scc-jifs893.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/test/resources/snapshot/gen/set-field-sfdu29.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/test/resources/snapshot/gen/type-aslid7fy.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/test/scala/fred/FuzzTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class FuzzTests
FnCall(
Spanned("c", Span.synth),
List(StringLiteral(
"processAllPCRs(); VALGRIND_DO_LEAK_CHECK;",
"processAllPCRs(); VALGRIND_DO_CHANGED_LEAK_CHECK;",
Span.synth
)),
None,
Expand Down

0 comments on commit dfacd9e

Please sign in to comment.