Thread safety of collections used by BTRACE

  1 post   Feedicon  
Replies: 0 - Last Post: October 30, 2011 09:49
by: lehuy20
showing 1 - 1 of 1
 
Posted: October 30, 2011 09:49 by lehuy20
Hi

I have seen using of Map in samples/JdbcQueries.java

private static Map<Statement, String> preparedStatementDescriptions =
Collections.newWeakMap();

Can someone confirm that it is thread safe ?

I have concern of such operations like Collections.put which can cause
problem when executing concurrently


Thanks
Replies: 0 - Last Post: October 30, 2011 09:49
by: lehuy20
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close