From 6625900877c78baf59523b06a620be67997bad0b Mon Sep 17 00:00:00 2001 From: Eduardo Souza Date: Thu, 29 Aug 2024 04:57:59 +0000 Subject: [PATCH] Removing jl_gc_notify_image_load, since it's a new function and not part of the refactoring --- src/gc-interface.h | 5 ----- src/gc-stock.c | 5 ----- src/staticdata.c | 2 -- 3 files changed, 12 deletions(-) diff --git a/src/gc-interface.h b/src/gc-interface.h index 682f22344d69da..25ffed4524f0c3 100644 --- a/src/gc-interface.h +++ b/src/gc-interface.h @@ -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 // ========================================================================= // diff --git a/src/gc-stock.c b/src/gc-stock.c index 4a8c6fe7decc55..9b633cacd7870b 100644 --- a/src/gc-stock.c +++ b/src/gc-stock.c @@ -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 diff --git a/src/staticdata.c b/src/staticdata.c index 6e0323829b6c4b..6dfe5e91a9c557 100644 --- a/src/staticdata.c +++ b/src/staticdata.c @@ -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); } @@ -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);