Stress test for ThreadLocal

Xerxes Rånby xerxes at
Fri Jan 27 06:03:05 PST 2012

2012-01-27 14:27, Andrew Haley skrev:
> On 01/27/2012 01:23 PM, Andrew Haley wrote:
>> May be useful for debugging JIT problems...
> This may be better: it tests put() too.
> Andrew.

Indeed interesting, seen after about 10min of testing on my pandaboard:

xranby at panda-oneiric:~$ java ThreadLocalTest 3
Exception in thread "Thread-0" java.lang.ArrayIndexOutOfBoundsException:
	at ThreadLocalTest$Worker.get(
	at ThreadLocalTest$
Exception in thread "Thread-2" java.lang.NullPointerException:
	at ThreadLocalTest$Worker.get(
	at ThreadLocalTest$

java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.12pre+r80c34531aba3) (Ubuntu build 1.6.0_24-b24)
OpenJDK Zero VM (build 20.0-b12, mixed mode)

More information about the distro-pkg-dev mailing list