Skip to content

Commit

Permalink
#XD-799 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
penemue committed Apr 15, 2020
1 parent 6955e2c commit 680a232
Show file tree
Hide file tree
Showing 13 changed files with 614 additions and 548 deletions.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ subprojects {
test {
minHeapSize = '1g'
maxHeapSize = '1g'
//jvmArgs = ['-ea', '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=2808']
jvmArgs = ['-ea'
//, '-Dexodus.log.cache.useSoftReferences=true'
//, '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=2808'
]
//testLogging.showStandardStreams = true
}

Expand Down
181 changes: 0 additions & 181 deletions environment/src/main/java/jetbrains/exodus/log/LogCache.java

This file was deleted.

10 changes: 10 additions & 0 deletions environment/src/main/java/jetbrains/exodus/log/LogConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class LogConfig {
private boolean isDurableWrite;
private boolean sharedCache;
private boolean nonBlockingCache;
private boolean cacheUseSoftReferences;
private int cacheGenerationCount;
private int cacheReadAheadMultiple;
private int cachePageSize;
Expand Down Expand Up @@ -177,6 +178,15 @@ public LogConfig setNonBlockingCache(boolean nonBlockingCache) {
return this;
}

public boolean getCacheUseSoftReferences() {
return cacheUseSoftReferences;
}

public LogConfig setCacheUseSoftReferences(boolean cacheUseSoftReferences) {
this.cacheUseSoftReferences = cacheUseSoftReferences;
return this;
}

public int getCacheGenerationCount() {
if (cacheGenerationCount == 0) {
cacheGenerationCount = EnvironmentConfig.DEFAULT.getLogCacheGenerationCount();
Expand Down
130 changes: 0 additions & 130 deletions environment/src/main/java/jetbrains/exodus/log/SeparateLogCache.java

This file was deleted.

Loading

0 comments on commit 680a232

Please sign in to comment.