Commit 4ec5faa
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 6cc0405 commit 4ec5faa
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
826 | | - | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
827 | 829 | | |
828 | 830 | | |
829 | 831 | | |
830 | 832 | | |
831 | 833 | | |
832 | 834 | | |
833 | 835 | | |
| 836 | + | |
834 | 837 | | |
835 | 838 | | |
836 | 839 | | |
| |||
842 | 845 | | |
843 | 846 | | |
844 | 847 | | |
| 848 | + | |
| 849 | + | |
845 | 850 | | |
846 | 851 | | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
847 | 859 | | |
0 commit comments