Commit 38ec67b
committed
LazyLibrary: Make
Like many registration / hook-like functions in Julia, this function is
somewhat dangerous to use at compile-time. Depending on whether the
`LazyLibrary` you are adding dependencies to was constructed in a prior
pre-compilation process or not, your dependencies may or may not persist.
This change errs on the side of consistency, and makes it so that
`add_dependency!` is always an ephemeral operation that does not persist
beyond the lifetime of the process. This makes it safe to temporarily
register dependencies, e.g., during a sysimage build.add_dependency! always ephemeral to a given process1 parent d268106 commit 38ec67b
1 file changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
361 | 366 | | |
362 | 367 | | |
363 | 368 | | |
| |||
377 | 382 | | |
378 | 383 | | |
379 | 384 | | |
380 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
381 | 390 | | |
382 | 391 | | |
383 | 392 | | |
| |||
390 | 399 | | |
391 | 400 | | |
392 | 401 | | |
393 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
394 | 405 | | |
395 | 406 | | |
396 | 407 | | |
| |||
402 | 413 | | |
403 | 414 | | |
404 | 415 | | |
405 | | - | |
| 416 | + | |
406 | 417 | | |
407 | 418 | | |
408 | 419 | | |
| |||
418 | 429 | | |
419 | 430 | | |
420 | 431 | | |
421 | | - | |
| 432 | + | |
422 | 433 | | |
423 | 434 | | |
424 | 435 | | |
| |||
0 commit comments