only do local object copy for the local module

This commit is contained in:
2025-04-28 00:07:45 +03:00
parent b0d3c57615
commit 7d2ac662d0
4 changed files with 49 additions and 38 deletions

View File

@@ -11,7 +11,7 @@
int main(int argc, char *argv[]) {
const char *reloadable_modules[] = {"", "libmini.so", "libhiload.so"};
const char *reloadable_modules[] = {"", "libmini.so"};
hi_init(ARRLEN(reloadable_modules), reloadable_modules);
int modified = -1;

View File

@@ -4,7 +4,7 @@ namespace minimal_lib {
int getNewValue(int x) {
static int value = 0;
value = value + 1;
value = value + 5;
return value;
}