Skip to content

Commit

Permalink
remove ohc cache library from the simulator as no longer maintained
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Nov 26, 2023
1 parent 57851e2 commit 5456ce4
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 152 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
allowed-endpoints: ${{ env.ALLOWED_ENDPOINTS }}
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Run gitleaks
uses: gitleaks/gitleaks-action@1f2d10fb689bc07a5f56f48d6db61f5bbbe772fa # v2.3.2
env:
Expand Down
1 change: 1 addition & 0 deletions gradle/config/spotbugs/exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
ACEM_ABSTRACT_CLASS_EMPTY_METHODS,
AI_ANNOTATION_ISSUES_NEEDS_NULLABLE,
AOM_ABSTRACT_OVERRIDDEN_METHOD,
BAS_BLOATED_ASSIGNMENT_SCOPE,
BL_BURYING_LOGIC,
CE_CLASS_ENVY,
CFS_CONFUSING_FUNCTION_SEMANTICS,
Expand Down
6 changes: 2 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ commons-text = "1.11.0"
concurrentlinkedhashmap = "1.4.2"
config = "1.4.3"
coveralls = "2.12.2"
dependency-check = "9.0.0"
dependency-check = "9.0.1"
eclipse-collections = "12.0.0.M3"
ehcache3 = "3.10.8"
errorprone-core = "2.23.0"
Expand Down Expand Up @@ -67,7 +67,6 @@ mockito = "5.7.0"
nexus-publish = "2.0.0-rc-1"
nullaway-core = "0.10.17"
nullaway-plugin = "1.6.0"
ohc = "0.6.1"
okhttp = "4.12.0"
osgi-annotations = "1.5.1"
osgi-function = "1.2.0"
Expand All @@ -81,7 +80,7 @@ slf4j = "2.0.9"
slf4j-test = "3.0.1"
snakeyaml = "2.2"
sonarqube = "4.4.1.3373"
spotbugs-contrib = "7.6.0"
spotbugs-contrib = "7.6.1"
spotbugs-core = "4.8.1"
spotbugs-plugin = "6.0.0-rc.2"
stream = "2.9.8"
Expand Down Expand Up @@ -176,7 +175,6 @@ mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" }
nexus-publish = { module = "io.github.gradle-nexus:publish-plugin", version.ref = "nexus-publish" }
nullaway-core = { module = "com.uber.nullaway:nullaway", version.ref = "nullaway-core" }
nullaway-plugin = { module = "net.ltgt.gradle:gradle-nullaway-plugin", version.ref = "nullaway-plugin" }
ohc = { module = "org.caffinitas.ohc:ohc-core-j8", version.ref = "ohc" }
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
osgi-annotations = { module = "org.osgi:org.osgi.service.component.annotations", version.ref = "osgi-annotations" }
osgi-function = { module = "org.osgi:org.osgi.util.function", version.ref = "osgi-function" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-rc-3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-rc-4-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
1 change: 0 additions & 1 deletion simulator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ dependencies {
implementation(project(":caffeine"))

implementation(libs.xz)
implementation(libs.ohc)
implementation(libs.ycsb) {
isTransitive = false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
import com.github.benmanes.caffeine.cache.simulator.policy.product.ExpiringMapPolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.product.GuavaPolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.product.HazelcastPolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.product.OhcPolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.product.TCachePolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.sampled.SampledPolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.sketch.WindowTinyLfuPolicy;
Expand Down Expand Up @@ -223,7 +222,6 @@ private void registerGreedyDual() {
private void registerProduct() {
register(GuavaPolicy.class, GuavaPolicy::new);
register(Cache2kPolicy.class, Cache2kPolicy::new);
registerMany(OhcPolicy.class, OhcPolicy::policies);
register(CaffeinePolicy.class, CaffeinePolicy::new);
register(Ehcache3Policy.class, Ehcache3Policy::new);
registerMany(TCachePolicy.class, TCachePolicy::policies);
Expand Down

This file was deleted.

8 changes: 0 additions & 8 deletions simulator/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ caffeine.simulator {
adaptive.Cart,

# Caching products
product.OHC,
product.Guava,
product.TCache,
product.Cache2k,
Expand Down Expand Up @@ -451,13 +450,6 @@ caffeine.simulator {
policy = [ lru ]
}

ohc {
# Policies: Lru, W-TinyLfu
policy = [lru, w-tinylfu]
# The percentage for the EDEN space (admission window)
percent-eden = 0.20
}

tcache {
# Policies: Lru, Lfu
policy = [ lru, lfu ]
Expand Down

0 comments on commit 5456ce4

Please sign in to comment.