Recently I studied the source code of ConcurrentHashMap.
In java 1.7, the segment field "count" got no volatile modifiers which is different from java 1.6. Is possible the size() method could read stale value through race read? -- You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
