[jboss-dev-forums] [Design the new POJO MicroContainer] - PathTokenizer again

adrian@jboss.org do-not-reply at jboss.com
Thu Jun 12 11:29:57 EDT 2008


When looking at a JBossAS bootstrap, I'm seeing a few of these
when I do random thread dumps.


  | "main" prio=1 tid=0x09547230 nid=0x16f1 runnable [0x805db000..0x805dce30]
  |         at java.lang.System.arraycopy(Native Method)
  |         at java.util.ArrayList.toArray(ArrayList.java:304)
  |         at org.jboss.virtual.plugins.vfs.helpers.PathTokenizer.getTokens(PathTokenizer.java:145)
  |         at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:413)
  |         at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:134)
  |         at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:101)
  |         at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:405)
  | 

Since PathTokenizer is only used internally, is there any reason why it can't
just return the List<String> instead of copying arrays all over the
place?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157718#4157718

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157718



More information about the jboss-dev-forums mailing list