Created
January 29, 2016 17:29
-
-
Save donaldh/4de32ce051b18491242e to your computer and use it in GitHub Desktop.
Candidate fix for "Missing serialize function for REPR ContextRef"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/CompUnit/Repository/Locally.pm b/src/core/CompUnit/Repository/Locally.pm | |
index bab6b34..5a8d6f1 100644 | |
--- a/src/core/CompUnit/Repository/Locally.pm | |
+++ b/src/core/CompUnit/Repository/Locally.pm | |
@@ -9,8 +9,12 @@ role CompUnit::Repository::Locally { | |
my $abspath := $*SPEC.rel2abs($prefix); | |
my $IO := IO::Path.new-from-absolute-path($abspath); | |
+ nqp::scwbdisable(); | |
%instances{$abspath} //= | |
self.bless(:prefix($IO), :lock(Lock.new), :WHICH(self.^name ~ '|' ~ $abspath), :$next-repo); | |
+ nqp::scwbenable(); | |
+ | |
+ %instances{$abspath}; | |
} | |
multi method Str(CompUnit::Repository::Locally:D:) { $!prefix.abspath } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment