Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
1360b3a
Restrict `path` to be an `AbstractString` in `lbt_forward()`
staticfloat Feb 7, 2023
d0a7175
Update LLVM build to 14.0.6+2 (#48544)
vchuravy Feb 8, 2023
ceacba1
Update checksums for llvm 14.0.6+2 (#48659)
vchuravy Feb 12, 2023
6213bb8
[REPL] Meta-e: Don't execute the edited code when exiting editor (#46…
fredrikekre Feb 13, 2023
d43d055
Disable frame-pointer-optimiation on Linux (#48660)
vchuravy Feb 13, 2023
b3d42d1
Fix Base.libllvm_path and jl_get_libllvm don't support non-ASCII char…
wesjenkins Feb 14, 2023
25bad18
fix #47658, state stack overflow on unions containing typevars (#48221)
JeffBezanson Jan 24, 2023
f7c4f59
restore kwcall_mt optimizations
Feb 20, 2023
5e39fc6
lattice: fix minor lattice issues (#47570)
aviatesk Nov 16, 2022
84e3545
Put back getfield :boundscheck hack (#48677)
Keno Feb 15, 2023
2324310
make `insert_extension_triggers` idempotent
KristofferC Feb 8, 2023
7734b34
fix printing of parents to extensions in `@time_imports`
KristofferC Feb 10, 2023
6545919
julia_cmd() docstring: include pkgimages (#48392)
fonsp Feb 13, 2023
1121d25
Allow for use 60% of constrained/total system memory (#48614)
gbaraldi Feb 10, 2023
a66d092
update loading test to best-practices (#48429)
vtjnash Jan 31, 2023
5453936
only load extension triggers from the evnironment where the parent pa…
KristofferC Feb 20, 2023
86b9df2
effects: taint `:nothrow` effect on unknown `:static_parameter` (#46791)
aviatesk Feb 8, 2023
af0e4c1
force singlethreading during precompilation (#48592)
IanButterworth Feb 10, 2023
0cb0bb4
Bump LLD to get dsymutil and use it for pkgimgs (#48628)
gbaraldi Feb 11, 2023
624c665
put back DelimitedFiles as a non-sysimage "stdlib" (#48671)
KristofferC Feb 21, 2023
956f54b
[OpenBLAS_jll] Upgrade to new build optimised for PowerPC (#48689)
giordano Feb 20, 2023
b5d9781
staticdata: encode link_id in tagged linkage (#48673)
vtjnash Feb 17, 2023
50b8c13
Add world argument to jl_create_native. (#48746)
maleadt Feb 21, 2023
1c22e77
[compiler] Teach type inference that `GotoIfNot` can throw (#48583)
staticfloat Feb 7, 2023
d2de99d
Stop renumbering statements in inference proper (#48022)
Keno Dec 29, 2022
a6a19e4
inference: fix the correctness of inference bail out interface (#48826)
aviatesk Mar 1, 2023
09757f7
effects: taint `nonoverlayed` when bailing out inference (#48838)
aviatesk Mar 1, 2023
2761b06
effects: handle va-method properly when refining `:inaccessiblememonl…
aviatesk Mar 3, 2023
e25fcc9
Test: add space after test failure for visual clarity (#48526)
IanButterworth Feb 21, 2023
54bdee8
[Make.inc] Define new variable `PATCHELF_SET_RPATH_ARG`
giordano Feb 25, 2023
a671f0c
Accept weakdeps as a source for UUIDS for Preferences
vchuravy Feb 26, 2023
b5243af
add a type assert to logging to prevent Base.require invalidation (#4…
KristofferC Feb 28, 2023
2497f83
Add libjulia-internal to ORCJIT symbol resolution (#48712)
topolarity Feb 28, 2023
8ba214d
Update MbedTLS to 2.28.2 (#48806)
mkitti Feb 28, 2023
b710bd2
Always use `-Wl,--warn-unresolved-symbols` in MSAN builds (#48835)
giordano Mar 1, 2023
3f040ca
Calculate a checksum for the system image (#48869)
timholy Mar 3, 2023
df3f686
fixup! effects: taint `nonoverlayed` when bailing out inference (#48838)
vchuravy Mar 3, 2023
44085f9
Atomically order specsigflags, specptr, and invoke (#47832)
pchintalapudi Feb 22, 2023
570251e
enable re-using external code in pkgimages (#48723)
vtjnash Feb 25, 2023
4710009
Fix final gc lowering on dynamically sized allocation (#48620)
wsmoses Feb 10, 2023
b07fb40
gf: cache cache_with_orig decision (#48833)
vtjnash Mar 1, 2023
d57c4ea
bump Pkg to latest 1.9
Mar 3, 2023
ec5e702
fixup! fixup! effects: taint `nonoverlayed` when bailing out inferenc…
KristofferC Mar 3, 2023
65a025f
staticdata: make hookup of code instances correct (#48751)
vtjnash Mar 3, 2023
c1cb058
staticdata: make completeinfo memory-/gc-safe (#48832)
vtjnash Mar 1, 2023
fcde569
fixup! gf: cache cache_with_orig decision (#48833)
vchuravy Mar 6, 2023
be9df3f
Merge pull request #48881 from JuliaLang/vc/backports-1.9
KristofferC Mar 6, 2023
8024dd6
Add note to NEWS about keywords in tab completion (#48863)
pbouffard Mar 3, 2023
fd1108b
staticdata: set method.nroots_sysimg in `jl_write_values` (#48875)
timholy Mar 3, 2023
96b3fe3
staticdata: check ci->relocatability before caching external speciali…
timholy Mar 3, 2023
9f3b747
Initialize JIT bytes
pchintalapudi Mar 5, 2023
e6249e7
Fix sorting missing values with offset indices (#48864)
LilithHafner Mar 6, 2023
9ced070
Fix heapsize hint and use a line for max memory (#48747)
gbaraldi Mar 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
staticdata: encode link_id in tagged linkage (#48673)
On 64-bit, we have enough space to encode (1) the tag, (2) the
`depmods` index, and (3) the offset all in a single 64-bit pointer
field. This means we don't need the external `link_id` arrays,
which reduces the size of many pkgimages by ~5%.

On 32-bit, we don't have enough bits to implement this strategy.
However, most linkages seem to be against the sysimage, and so
by giving that a separate tag we can achieve similar compression
because the `link_id` lists will be much shorter.

Co-authored-by: Tim Holy <[email protected]>

(cherry picked from commit 8e3e970)
  • Loading branch information
vtjnash authored and KristofferC committed Feb 21, 2023
commit b5d9781128490ab4510e3112d980a744878323c2
6 changes: 3 additions & 3 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4230,7 +4230,7 @@ static jl_cgval_t emit_invoke(jl_codectx_t &ctx, const jl_cgval_t &lival, const
bool cache_valid = ctx.use_cache;
bool external = false;
if (ctx.external_linkage) {
if (jl_object_in_image((jl_value_t*)codeinst)) {
if (0 && jl_object_in_image((jl_value_t*)codeinst)) {
// Target is present in another pkgimage
cache_valid = true;
external = true;
Expand Down Expand Up @@ -5597,7 +5597,7 @@ static Function *emit_tojlinvoke(jl_code_instance_t *codeinst, Module *M, jl_cod

bool cache_valid = params.cache;
if (params.external_linkage) {
if (jl_object_in_image((jl_value_t*)codeinst)) {
if (0 && jl_object_in_image((jl_value_t*)codeinst)) {
// Target is present in another pkgimage
cache_valid = true;
}
Expand Down Expand Up @@ -8503,7 +8503,7 @@ void jl_compile_workqueue(
auto invoke = jl_atomic_load_relaxed(&codeinst->invoke);
bool cache_valid = params.cache;
if (params.external_linkage) {
cache_valid = jl_object_in_image((jl_value_t*)codeinst);
cache_valid = 0 && jl_object_in_image((jl_value_t*)codeinst);
}
// WARNING: isspecsig is protected by the codegen-lock. If that lock is removed, then the isspecsig load needs to be properly atomically sequenced with this.
if (cache_valid && invoke != NULL) {
Expand Down
2 changes: 0 additions & 2 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3022,8 +3022,6 @@ static void mark_roots(jl_gc_mark_cache_t *gc_cache, jl_gc_mark_sp_t *sp)
}
if (_jl_debug_method_invalidation != NULL)
gc_mark_queue_obj(gc_cache, sp, _jl_debug_method_invalidation);
if (jl_build_ids != NULL)
gc_mark_queue_obj(gc_cache, sp, jl_build_ids);

// constants
gc_mark_queue_obj(gc_cache, sp, jl_emptytuple_type);
Expand Down
2 changes: 0 additions & 2 deletions src/jl_exported_data.inc
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@
XX(jl_voidpointer_type) \
XX(jl_void_type) \
XX(jl_weakref_type) \
XX(jl_build_ids) \
XX(jl_linkage_blobs) \

// Data symbols that are defined inside the public libjulia
#define JL_EXPORTED_DATA_SYMBOLS(XX) \
Expand Down
10 changes: 3 additions & 7 deletions src/julia_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,8 @@ extern tracer_cb jl_newmeth_tracer;
void jl_call_tracer(tracer_cb callback, jl_value_t *tracee);
void print_func_loc(JL_STREAM *s, jl_method_t *m);
extern jl_array_t *_jl_debug_method_invalidation JL_GLOBALLY_ROOTED;
extern arraylist_t jl_linkage_blobs; // external linkage: sysimg/pkgimages
extern jl_array_t *jl_build_ids JL_GLOBALLY_ROOTED; // external linkage: corresponding build_ids
extern arraylist_t jl_image_relocs; // external linkage: sysimg/pkgimages
JL_DLLEXPORT extern arraylist_t jl_linkage_blobs; // external linkage: sysimg/pkgimages
JL_DLLEXPORT extern arraylist_t jl_image_relocs; // external linkage: sysimg/pkgimages

extern JL_DLLEXPORT size_t jl_page_size;
extern jl_function_t *jl_typeinf_func JL_GLOBALLY_ROOTED;
Expand Down Expand Up @@ -956,10 +955,7 @@ static inline void jl_set_gc_and_wait(void)
// Query if a Julia object is if a permalloc region (due to part of a sys- pkg-image)
STATIC_INLINE size_t n_linkage_blobs(void) JL_NOTSAFEPOINT
{
if (!jl_build_ids)
return 0;
assert(jl_is_array(jl_build_ids));
return jl_array_len(jl_build_ids);
return jl_image_relocs.len;
}

// TODO: Makes this a binary search
Expand Down
Loading