Skip to content

Commit

Permalink
Downgrade Provision because there is a memory leak in the last version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum committed Aug 11, 2023
1 parent dd56a82 commit 5243fad
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"provision": {
"repository": "git+https://github.com/Dadoum/Provision.git",
"version": "58f339fe988d770da5de4ad7361a619b5deea2f6"
"version": "fa028b6f4e6e2704bf43f92031fe5c3223045f64"
},
"slf4d": "~>2.1.1",
"vibe-d:web": "~>0.9.7-alpha.2",
Expand Down
7 changes: 6 additions & 1 deletion dub.selections.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"fileVersion": 1,
"versions": {
"automem": "0.6.9",
"cachetools": "0.4.1",
"diet-ng": "1.8.1",
"dxml": "0.4.3",
"eventcore": "0.9.25",
Expand All @@ -11,10 +13,13 @@
"openssl-static": "1.0.2+3.0.8",
"plist": "~master",
"plist-d": {"version":"d494cf3fe79a2bb20583173c0c8cf85ef33b719e","repository":"git+https://github.com/Dadoum/libplist-d.git"},
"provision": {"version":"58f339fe988d770da5de4ad7361a619b5deea2f6","repository":"git+https://github.com/Dadoum/Provision.git"},
"provision": {"version":"fa028b6f4e6e2704bf43f92031fe5c3223045f64","repository":"git+https://github.com/Dadoum/Provision.git"},
"requests": "2.1.1",
"slf4d": "2.1.1",
"stdx-allocator": "2.77.5",
"taggedalgebraic": "0.11.22",
"test_allocator": "0.3.4",
"unit-threaded": "0.10.8",
"vibe-core": "2.2.0",
"vibe-d": "0.9.7-alpha.2"
}
Expand Down
10 changes: 8 additions & 2 deletions source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ class AnisetteService {
file.write(provisioningPath.buildPath("adi.pb"), adi_pb);

GC.disable(); // garbage collector can deallocate ADI parts since it can't find the pointers.
scope(exit) GC.enable();
scope(exit) {
GC.enable();
GC.collect();
}

ADI adi = makeGarbageCollectedADI(libraryPath);
adi.provisioningPath = provisioningPath;
Expand Down Expand Up @@ -330,7 +333,10 @@ class AnisetteService {
log.infoF!("[<< %s] Correct identifier (%s).")(requestUUID, identifier);

GC.disable(); // garbage collector can deallocate ADI parts since it can't find the pointers.
scope(exit) GC.enable();
scope(exit) {
GC.enable();
GC.collect();
}
ADI adi = makeGarbageCollectedADI(libraryPath);
auto provisioningPath = file.getcwd()
.buildPath("provisioning")
Expand Down

0 comments on commit 5243fad

Please sign in to comment.