On 4/21/06, David Delbecq <[EMAIL PROTECTED]> wrote: > Leon Rosenberg a écrit : > > >I don't know it depends on your implementation of hashCode() method. > >Are you using 1.5? > > > > static int hash(Object x) { > > int h = x.hashCode(); <-- your programm is here > > > > h += ~(h << 9); > > h ^= (h >>> 14); > > h += (h << 4); > > h ^= (h >>> 10); > > return h; > > } > > > >I think chances are low that the you see threads in this method often. > >Would you mind checking the hashCode() method implementation of the > >objects you put in the map? > > > >Maybe someone programmed some kind of very-cool-hash-code-optimization > >and got an infinite loop. > > > > > > > > > False :) > > Please note the thread dumps tells the Thread "http-8080-Processor56" is in > > java.util.HashMap.hash(HashMap.java:264) > not in something like com.company.veryCoolClass.hashCode(); > > as you said, the program is here : int h = x.hashCode() > that mean it is either in the step of putting the value from registers to h , > either in precall of x.hashCode(). In no way is it currently running > x.hashCode() :) > Please also note, chance to get Threads in there are not so low when you play > a lots with Hashmap :)
Ok you are right, my fault leon > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]