Commit 32295f1
committed
Run
This change makes the LinearAlgebra initialization code run during the
sysimage build, similar to how it would run when using LinearAlgebra at
top-level in a normal package.
In this configuration, we can't rely on the serializer to isolate
side-effects for us, so we have to manually ensure that any mutations
that we perform here are not accidentally persisted to run-time.
Accordingly, the `OncePerProcess` is here as a reminder that any code
in this init have to think about phasing (and be careful not to leave
behind changes from compile-time that would badly impact run-time).__init__() even in sysimage builds1 parent 8cc4216 commit 32295f1
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
824 | 826 | | |
825 | 827 | | |
826 | 828 | | |
827 | 829 | | |
828 | 830 | | |
829 | 831 | | |
830 | 832 | | |
| 833 | + | |
831 | 834 | | |
832 | 835 | | |
833 | 836 | | |
| |||
839 | 842 | | |
840 | 843 | | |
841 | 844 | | |
| 845 | + | |
| 846 | + | |
842 | 847 | | |
843 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
844 | 856 | | |
0 commit comments