Re: Concurrent Hash Map javadoc question
Martijn Verburg via Concurrency-interest <[email protected]>
| Newsgroups | gmane.comp.java.jsr.166-concurrency,gmane.comp.java.openjdk.general |
|---|---|
| Message-ID | <CAP7YuATdwPKTAbGyEXrVPomY85jiu5ML5=i_sHwttTKP8joAMw@mail.gmail.com> |
Hi Keith, I think this is one for concurrency interest to answer. Cheers, Martijn On Tue, 17 Sep 2019 at 12:48, Keith Turner <[email protected]> wrote: > The javadoc for ConcurrentHashMap.computeIfAbsent() states the > remapping function is applied at most once. The functions > computeIfPresent() and compute() do not explicitly state if the > remapping functions could possibly be run multiple times. Does anyone > know if computeIfPresent() and compute() are guaranteed to only run > the remapping functions at most once? If so, should the javadoc be > updated? > > Thanks, > > Keith > _______________________________________________ Concurrency-interest mailing list [email protected] http://cs.oswego.edu/mailman/listinfo/concurrency-interest