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.
dev build from Sep 21, JDK1.5.0b64 while verifying issue #42387 I saw reads from ModulesAutoDeps/*.xml that are unbuffered. It seems that the first line is read byte by byte and the rest is read in single call (if it is shorter than 2048b) [pid 8959] open("./nbbuild/netbeans/bin/../ide4/config/ModuleAutoDeps/org-netbeans-modules-java.xml", O_RDONLY|O_LARGEFILE <unfinished ...> [pid 8963] ioctl(13, FIONREAD <unfinished ...> [pid 8959] <... open resumed> ) = 16 [pid 8963] <... ioctl resumed> , [0]) = 0 [pid 8959] fstat64(16, <unfinished ...> [pid 8963] ioctl(13, FIONREAD <unfinished ...> [pid 8959] <... fstat64 resumed> {st_mode=S_IFREG|0664, st_size=1327, ...}) = 0 [pid 8963] <... ioctl resumed> , [0]) = 0 [pid 8959] read(16, <unfinished ...> [pid 8963] poll( <unfinished ...> [pid 8959] <... read resumed> "<", 1) = 1 [pid 8959] read(16, "?", 1) = 1 [pid 8959] read(16, "x", 1) = 1 [pid 8959] read(16, "m", 1) = 1 [pid 8959] read(16, "l", 1) = 1 [pid 8959] read(16, " ", 1) = 1 [pid 8959] read(16, "v", 1) = 1 [pid 8959] read(16, "e", 1) = 1 [pid 8959] read(16, "r", 1) = 1 [pid 8959] read(16, <unfinished ...>
It seems to be more common pattern not only visible during reading of ModulesAutoDeps/*.xml but also for our .settings files and config files in our window system. Maybe it is behaviour of XML parser contained in JDK 1.5.
Can be fixed by wrapping to buffered stream at various places like core/settings/src/org/netbeans/modules/settings/convertors/XMLSettingsSupport.java:737 core/src/org/netbeans/core/xml/FileEntityResolver.java:375 + winsys + moduleautodeps
Radime, this is easy to fix, aint'it?
Looks like nothing happens until this gets a real owner. Radime, can you take it? Feel free to re-assign if appropriate.
ModuleAutoDeps/*.xml reading changed /shared/data/ccvs/repository/core/startup/src/org/netbeans/core/startup/AutomaticDependencies.java,v <-- AutomaticDependencies.java new revision: 1.2; previous revision: 1.1
/shared/data/ccvs/repository/core/src/org/netbeans/core/xml/FileEntityResolver.java,v <-- FileEntityResolver.java new revision: 1.30; previous revision: 1.29 should be enough at least for startup