{"id":16859515,"url":"https://github.com/raphw/weak-lock-free","last_synced_at":"2025-04-12T21:21:42.152Z","repository":{"id":53055531,"uuid":"54904297","full_name":"raphw/weak-lock-free","owner":"raphw","description":"Implementation of a concurrent map with weak keys and a detached thread local storage.","archived":false,"fork":false,"pushed_at":"2021-04-08T14:52:51.000Z","size":85,"stargazers_count":115,"open_issues_count":3,"forks_count":17,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-14T14:17:55.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raphw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-28T16:02:53.000Z","updated_at":"2024-08-24T16:02:10.000Z","dependencies_parsed_at":"2022-08-24T11:41:00.149Z","dependency_job_id":null,"html_url":"https://github.com/raphw/weak-lock-free","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphw%2Fweak-lock-free","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphw%2Fweak-lock-free/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphw%2Fweak-lock-free/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphw%2Fweak-lock-free/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphw","download_url":"https://codeload.github.com/raphw/weak-lock-free/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248632427,"owners_count":21136684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T14:18:06.710Z","updated_at":"2025-04-12T21:21:42.102Z","avatar_url":"https://github.com/raphw.png","language":"Java","readme":"This is a miniature implementation of a concurrent, lock-free (as in lock-less) hash map with weak keys where keys respect reference equality. Such a hash map removes entries containing collected keys by either:\n\n1. Inline removal (entries that contain to collected keys are removed as a result of interaction with the map).\n2. Implicit concurrent removal (entries that contain collected keys are removed by an external thread).\n3. Explicit concurrent removal (explicit interaction with the map's reference queue).\n\nAs a wrapper around this `WeakConcurrentMap`, this package also contains a `DetachedThreadLocal` which describes a weak concurrent map where the current thread serves as a key of the map. Also, this package delivers a `WeakConcurrentSet` as a wrapper around a weak concurrent map.\n\nThis map does not implement the `java.util.Map` interface to simplify the implementation. Writes to the map might cause blocking if many threads write to the map concurrently (this is implied by the maps backing by a `ConcurrentHashMap` and a `ReferenceQueue`), the performance of the map is however significantly better than using a synchronized wrapper around a weak hash map.\n\nThe library is hosted on *Maven Central* and *JCenter*:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.blogspot.mydailyjava\u003c/groupId\u003e\n  \u003cartifactId\u003eweak-lock-free\u003c/artifactId\u003e\n  \u003cversion\u003eLATEST\u003c/version\u003e\n\u003c/dependency\u003e\n```\n","funding_links":[],"categories":["并发编程"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphw%2Fweak-lock-free","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphw%2Fweak-lock-free","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphw%2Fweak-lock-free/lists"}