Skip to content

Commit

Permalink
Removing jl_gc_notify_image_load, since it's a new function and not p…
Browse files Browse the repository at this point in the history
…art of the refactoring
  • Loading branch information
udesou committed Aug 30, 2024
1 parent 11db079 commit 6625900
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions src/gc-interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,6 @@ JL_DLLEXPORT void *jl_gc_perm_alloc(size_t sz, int zero, unsigned align,
// object being allocated and will be used to set the object header.
struct _jl_value_t *jl_gc_permobj(size_t sz, void *ty) JL_NOTSAFEPOINT;

// This function notifies the GC about memory addresses that are set when loading the boot image.
// The GC may use that information to, for instance, determine that such objects should
// be treated as marked and belonged to the old generation in nursery collections.
void jl_gc_notify_image_load(const char* img_data, size_t len);

// ========================================================================= //
// Runtime Write-Barriers
// ========================================================================= //
Expand Down
5 changes: 0 additions & 5 deletions src/gc-stock.c
Original file line number Diff line number Diff line change
Expand Up @@ -3936,11 +3936,6 @@ JL_DLLEXPORT void jl_gc_schedule_foreign_sweepfunc(jl_ptls_t ptls, jl_value_t *o
arraylist_push(&ptls->gc_tls.sweep_objs, obj);
}

void jl_gc_notify_image_load(const char* img_data, size_t len)
{
// Do nothing
}

#ifdef __cplusplus
}
#endif
2 changes: 0 additions & 2 deletions src/staticdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ static void jl_load_sysimg_so(void)
plen = (size_t *)&jl_system_image_size;
else
jl_dlsym(jl_sysimg_handle, "jl_system_image_size", (void **)&plen, 1);
jl_gc_notify_image_load(sysimg_data, *plen);
jl_restore_system_image_data(sysimg_data, *plen);
}

Expand Down Expand Up @@ -3899,7 +3898,6 @@ JL_DLLEXPORT jl_value_t *jl_restore_package_image_from_file(const char *fname, j
jl_dlsym(pkgimg_handle, "jl_system_image_data", (void **)&pkgimg_data, 1);
size_t *plen;
jl_dlsym(pkgimg_handle, "jl_system_image_size", (void **)&plen, 1);
jl_gc_notify_image_load(pkgimg_data, *plen);

jl_image_t pkgimage = jl_init_processor_pkgimg(pkgimg_handle);

Expand Down

0 comments on commit 6625900

Please sign in to comment.