Skip to content

Commit

Permalink
Remove no longer needed permgen size check (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
uRyanxD authored Nov 2, 2024
1 parent 33e3e38 commit 74413c2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions patches/server/0103-Remove-unnecessary-permgen-size-check.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: uRyanxD <familiarodrigues123ro@gmail.com>
Date: Wed, 30 Oct 2024 17:56:59 -0300
Subject: [PATCH] Remove unnecessary permgen size check


diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java
index 3fdc95dc79531f909728af4e543a3f9b621f5159..e8e264ec639594aa282648e9797e1bb4dae1cfd9 100644
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
@@ -207,6 +207,8 @@ public class Main {
// PandaSpigot end
}

+ // PandaSpigot start - Not necessary to check permgen size anymore
+ /*
// Spigot Start
int maxPermGen = 0; // In kb
for ( String s : java.lang.management.ManagementFactory.getRuntimeMXBean().getInputArguments() )
@@ -223,6 +225,8 @@ public class Main {
System.out.println( "Please see http://www.spigotmc.org/wiki/changing-permgen-size/ for more details and more in-depth instructions." );
}
// Spigot End
+ */
+ // PandaSpigot end
System.setProperty("library.jansi.version", "PandaSpigot"); // PandaSpigot - set meaningless jansi version to prevent git builds from crashing on Windows
System.out.println("Loading libraries, please wait...");
// PandaSpigot start - Modern tick loop

0 comments on commit 74413c2

Please sign in to comment.