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.
I am surprised that my sampling profiler notices that the method is executed. It should just wait for finished scanning and once it is notified it can return. Unfortunately it waits actively and awakes every 100ms performs some jobs and sleeps again. I see 400-500 iterations of the loop before my IDE gets started on my Solaris (total startup time is ~55s and can be even worse for cold start).
Currently there are at least four usages that queries periodicaly during startup whether scanning is done: annotations refreshing, fold updating, something related to nodes, navigator.
Lets' try to measure affect of this bug. Please try to measure startup time and compare it with startup time of patched ide. Patch is not a real fix, it just minimize number of iterations.
OK. Ignore my last comment. We discussed it face by face with Radim.
Re impact: Although the duration of each loop body is neglectible my profiler that samples every 1ms notices almost each iteration. It usualy shows that the state is either 'Wiat CPU' or 'Other wait' and only rarely it is 'User CPU'. Reported time in user CPU state is >0.1% ot total startup time with this sampling. Given that it is sampling and there should be other overhead with context switching it seems that the impact can be much higher. OTOH the startup sequence is really long here because it is not a fast machine and it is profiling (even fast machine can suffer from active waiting if you have a complex setup). It might be interesting to measure this with dtrace.
Moving to different subcomponent. With respect to the latest changes in java infrastructure will likely not be fixed.
Any reason this and other MDR related issues are not closed? It's a little hard to get a picture of what things are really needing fixing and not when doing a query against the Java module (I'm trying to submit less duplicate bugs).
Reorganization of java component
This issue is not valid in current builds any more. Java support was completely redesigned in 6.0 time frame. Please use NetBeans 6.0 and later.