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.

Bug 157930 - A lot of JNA during start
Summary: A lot of JNA during start
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: PERFORMANCE, REGRESSION
Depends on:
Blocks: 157829
  Show dependency tree
 
Reported: 2009-02-04 16:52 UTC by Jaroslav Tulach
Modified: 2009-02-19 22:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stacktraces with some violations (302.27 KB, text/plain)
2009-02-04 16:54 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2009-02-04 16:52:51 UTC
PS: Startup is slower by 10s in recent measurements.

A lot of new JNA classes is loaded on start. Why? I would expect them to be needed only during d'n'd not during start 
itself. These are new since last measurement done at M1:

    com.sun.jna.AltCallingConvention
    com.sun.jna.Callback
    com.sun.jna.FromNativeContext
    com.sun.jna.FromNativeConverter
    com.sun.jna.Function
    com.sun.jna.Function$PostCallRead
    com.sun.jna.FunctionMapper
    com.sun.jna.FunctionParameterContext
    com.sun.jna.FunctionResultContext
    com.sun.jna.IntegerType
    com.sun.jna.Library
    com.sun.jna.Library$Handler
    com.sun.jna.Library$Handler$FunctionInfo
    com.sun.jna.Library$Handler$FunctionNameMap
    com.sun.jna.Memory
    com.sun.jna.MethodParameterContext
    com.sun.jna.MethodResultContext
    com.sun.jna.Native
    com.sun.jna.NativeLibrary
    com.sun.jna.NativeLong
    com.sun.jna.NativeMapped
    com.sun.jna.NativeMappedConverter
    com.sun.jna.Pointer
    com.sun.jna.PointerType
    com.sun.jna.Structure
    com.sun.jna.Structure$ByReference
    com.sun.jna.Structure$ByValue
    com.sun.jna.Structure$FFIType$FFITypes
    com.sun.jna.Structure$MemberOrder
    com.sun.jna.Structure$StructField
    com.sun.jna.StructureReadContext
    com.sun.jna.StructureWriteContext
    com.sun.jna.ToNativeContext
    com.sun.jna.ToNativeConverter
    com.sun.jna.TypeConverter
    com.sun.jna.WString
    com.sun.jna.ptr.ByReference
    com.sun.jna.ptr.IntByReference
    com.sun.jna.ptr.NativeLongByReference
    com.sun.jna.ptr.PointerByReference
Comment 1 Jaroslav Tulach 2009-02-04 16:54:33 UTC
Created attachment 76570 [details]
Stacktraces with some violations
Comment 2 Stanislav Aubrecht 2009-02-05 09:26:57 UTC
jna initialization is delayed until the main window is painted

097abf1663be
Comment 3 Quality Engineering 2009-02-07 08:40:49 UTC
Integrated into 'main-golden', will be available in build *200902070301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/097abf1663be
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #157930 - do not load jna classes at startup