Skip to content

Instantly share code, notes, and snippets.

@ugexe

ugexe/diff.diff Secret

Created May 4, 2019 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugexe/ce6330421e9ffe8c1dc7ead19b822f7b to your computer and use it in GitHub Desktop.
Save ugexe/ce6330421e9ffe8c1dc7ead19b822f7b to your computer and use it in GitHub Desktop.
C:\Users\ugexe\.rakudobrew\moar-blead-master>git diff
diff --git a/src/core/CompUnit/PrecompilationStore/File.pm6 b/src/core/CompUnit/PrecompilationStore/File.pm6
index 204fda5bb..5ab480c70 100644
--- a/src/core/CompUnit/PrecompilationStore/File.pm6
+++ b/src/core/CompUnit/PrecompilationStore/File.pm6
@@ -181,7 +181,10 @@ class CompUnit::PrecompilationStore::File does CompUnit::PrecompilationStore {
}
method remove-from-cache(CompUnit::PrecompilationId $precomp-id) {
- $!update-lock.protect: { %!loaded{$precomp-id}:delete };
+ $!update-lock.protect: {
+ %!loaded{$precomp-id}.?close();
+ %!loaded{$precomp-id}:delete;
+ };
}
method destination(CompUnit::PrecompilationId $compiler-id,
diff --git a/t/02-rakudo/reproducible-builds.t b/t/02-rakudo/reproducible-builds.t
index e3e15ed91..9b4fc3c4a 100644
--- a/t/02-rakudo/reproducible-builds.t
+++ b/t/02-rakudo/reproducible-builds.t
@@ -21,8 +21,8 @@ for ^2 -> $run {
$store.remove-from-cache($id);
$store.delete-by-compiler($compiler-id);
}
-$store.prefix.child('.lock').unlink;
-$store.prefix.rmdir;
+#$store.prefix.child('.lock').unlink;
+#$store.prefix.rmdir;
is @checksums[1], @checksums[0], 'Both precompilation runs resulted in the same checksum'
or do {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment