Re: Blocking in WeakIdentityMap

Gregg Wonderly <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Mark Brouwer wrote:
> FYI this is a nice article about java SE 6 and DTrace
> http://www.devx.com/Java/Article/33943 . It will enable you to find
> problems (also in production) for which in general profilers are too
> intrusive.

I'd like to suggest that if the river codebase moves to JDK1.5 as the base, that
we change WeakIdentityMap to use ConcurrentHashMap instead, to distribute
resource contention among keys, and add a putIfAbsent method so that users of
it, can do the lazy, best effort initialization.

Gregg Wonderly

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.