This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The files to reproduce the test can be obtained as: svn co -r 3169 https://bluemarine.dev.java.net/svn/bluemarine/trunk/src/blueMarine-core/Core/Thumbnail/src/it/tidalwave/bluemarine/thumbnail/ impl/ThumbnailImage.java https://bluemarine.dev.java.net/svn/bluemarine/trunk/src/blueMarine-core/Core/Thumbnail/test/unit/src/it/tidalwave/ bluemarine/thumbnail/impl Basically, there are tests that invoke this piece of code: private long runDecompress (ThumbnailImage thImage, final ImageReader reader) throws IOException { final long time = System.currentTimeMillis(); for (int i = 0; i < REPEAT_COUNT; i++) { if (reader != null) { thImage.decompressImage(reader); } else { thImage.decompressImage(); } } return (System.currentTimeMillis() - time) / REPEAT_COUNT; } REPEAT_COUNT = 100, so the invocation count for decompressImage() must be 100. A first test is invoked in the current thread, and the profiler reports correctly 100 invocations; a second test creates two threads each one invoking the code above, but in this case the invocation count for decompressImage() is 70. I don't know whether the Time reported is correct. [Mistral:~] fritz% uname -a Darwin Mistral.local 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386 [Mistral:~] fritz% java -version java version "1.5.0_07" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164) Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)
Created attachment 50079 [details] Screenshot showing the problem
The test is run by invoking the "Profile" context menu on the test case (ThumbnailImageTest.java)
Tried to reproduce in the current dev build (200710030000) but with no success - the snapshot generated is attached. If you have more specific details about your environment (eg. messages.log) and/or steps to reproduce this bug it would help in solving it.
Changing target milestone to dev, since NetBeans 6.0 is in high resistance mode.
Couldn't reproduce with the latest build 080903. Please provide steps if you find it again. Remove incomplete.