Figure 5 contains an excerpt from java.util.vector that … If one thread calls lastIndexOf(elem) … that method may access elementCount without acquiring the … and then call trimToSize … Thus, an array out of bounds exception will … array based on the old value of elementCount. …
Google-1
Google-2
Copyright clearance needed for quotation.