-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9ae70e
commit a651f03
Showing
3 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
patches/server/0045-Luminol-Try-fixing-memory-leaking.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: AltronMaxX <max06112004@gmail.com> | ||
Date: Sat, 17 Aug 2024 12:58:02 +0400 | ||
Subject: [PATCH] Luminol: Try-fixing-memory-leaking | ||
|
||
|
||
diff --git a/src/main/java/io/papermc/paper/threadedregions/RegionizedWorldData.java b/src/main/java/io/papermc/paper/threadedregions/RegionizedWorldData.java | ||
index 5dc4c8a5b896f519be5414d4a53a71144c225324..7d4f66752c2f380f3c6c552d5bc7907b9ad69c6e 100644 | ||
--- a/src/main/java/io/papermc/paper/threadedregions/RegionizedWorldData.java | ||
+++ b/src/main/java/io/papermc/paper/threadedregions/RegionizedWorldData.java | ||
@@ -549,7 +549,7 @@ public final class RegionizedWorldData { | ||
|
||
public void addLoadedEntity(final Entity entity) { | ||
if (this.loadedEntities.add(entity)) { | ||
- this.toProcessTrackingUnloading.remove(entity); | ||
+ //this.toProcessTrackingUnloading.remove(entity); // Luminol - Try fixing memory leaking | ||
} | ||
} | ||
|
||
@@ -559,7 +559,7 @@ public final class RegionizedWorldData { | ||
|
||
public void removeLoadedEntity(final Entity entity) { | ||
if (this.loadedEntities.remove(entity)) { | ||
- this.toProcessTrackingUnloading.add(entity); | ||
+ //this.toProcessTrackingUnloading.add(entity); // Luminol - Try fixing memory leaking | ||
} | ||
} | ||
|
||
@@ -567,6 +567,7 @@ public final class RegionizedWorldData { | ||
return this.loadedEntities; | ||
} | ||
|
||
+ @java.lang.Deprecated // Luminol - Try fixing memory leaking | ||
public Entity[] takeTrackingUnloads() { | ||
final Entity[] ret = Arrays.copyOf(this.toProcessTrackingUnloading.getRawData(), this.toProcessTrackingUnloading.size(), Entity[].class); | ||
|