mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-30 01:34:04 +00:00
Release engine references from thread scratch
- Clear the decorator placement mantle reference when each placement returns - Release carve scratch biome, cavern and layer memos when each chunk is carved - Resolve carving blend profiles through the engine's thread resolver state - Move carver, mantle writer and history router thread flags into thread slots - List the remaining scratch thread-locals with what each one references - Check statics for thread slots in the ledger gate - Expect the engine release probe to pass
This commit is contained in:
1 parent
d6d87a47d2
commit
170e5a726e
11 files changed
+41
-37
No files matched your search
@@ -7,12 +7,9 @@ import art.arcane.iris.generation.runtime.Engine;
|
||||
import art.arcane.iris.generation.terrain.IrisDimension;
|
||||
import art.arcane.iris.generation.terrain.IrisRegion;
|
||||
import art.arcane.iris.pack.loading.IrisData;
|
||||
import art.arcane.iris.testsupport.ExpectedToFailUntilFixed;
|
||||
import art.arcane.iris.testsupport.ExpectedToFailUntilFixedRule;
|
||||
import art.arcane.iris.testsupport.IrisRuntimeState;
|
||||
import com.sun.management.HotSpotDiagnosticMXBean;
|
||||
import org.junit.After;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.lang.management.ManagementFactory;
|
||||
@@ -45,16 +42,12 @@ public class EngineReleaseProbeTest {
|
||||
private static final long WORKER_TASK_TIMEOUT_SECONDS = 60L;
|
||||
private static final String HEAP_DUMP_ENVIRONMENT = "IRIS_ENGINE_RELEASE_HEAP_DUMP";
|
||||
|
||||
@Rule
|
||||
public final ExpectedToFailUntilFixedRule expectedFailures = new ExpectedToFailUntilFixedRule();
|
||||
|
||||
@After
|
||||
public void resetRuntime() {
|
||||
IrisRuntimeState.reset();
|
||||
}
|
||||
|
||||
@Test(timeout = 300_000)
|
||||
@ExpectedToFailUntilFixed("pack objects and worker threads still cache engine-derived state")
|
||||
public void closedEngineIsCollectableWhilePackObjectsAndWorkersStayAlive() throws Exception {
|
||||
List<Object> survivingPackObjects = new ArrayList<>();
|
||||
WeakReference<Engine> closedEngine;
|
||||
|
||||
Reference in new issue
Block a user