Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4152850

Memory leaks when running HotJava browser stress test

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 1.2.0
    • client-libs
    • 2d
    • sparc
    • solaris_2.6

      This is just a part of bug 4149136. Separating them in order for easy track.
      There is minor memory leaks in awt/2D when running HotJava applet test.
      See the following dbx showmemuse report:

      (dbx) showmemuse
      Checking for memory use...
      dbx: warning: rtc: locks in use, could not acquire rtc locks at this time

      Blocks in use report (blocks in use: 15807 total size: 3754490 bytes)

       Total % of Num of Avg Allocation call stack
       Size All Blocks Size
      ======= ==== ====== ====== =======================================
      3547800 94% 438 8100 HAE_Allocate < XNewPtr
        51140 1% 2557 20 dga_winlist_add < XDgaGrabDrawable
        30684 <1% 2557 12 dgai_win_grab_common < XDgaGrabDrawable
        30684 <1% 2557 12 dgai_win_grab_common < XDgaGrabDrawable
        30684 <1% 2557 12 dgai_win_grab_common < XDgaGrabDrawable
        30684 <1% 2557 12 dgai_win_grab_common < XDgaGrabDrawable
        30684 <1% 2557 12 dgai_win_grab_common < XDgaGrabDrawable
          876 <1% 3 292 operator new < fontObject::getStrike
          428 <1% 1 428 dgai_win_grab_common < XDgaGrabDrawable < Solaris_DG
      A_GetLock < DGA_DeferredLockViewResources < X11DeferredLockViewResources < Java_
      sun_awt_motif_X11Graphics_X11LockViewResources < sysInvokeNative < invokeJNINati
      veMethod
          224 <1% 2 112 XCreateGC < awt_init_gc
          128 <1% 2 64 operator new < hsSoftNew
           96 <1% 1 96 awt_copyXEvent < awt_canvas_handleEvent < dispatchTo
      Widget < awt_MToolkit_loop < Java_sun_awt_motif_MToolkit_run < invoke_V_V < invo
      keLazyNativeMethod < callmethod_1
           72 <1% 2 36 calloc < Java_sun_awt_motif_X11Graphics_createFromCo
      mponent
           60 <1% 2 30 XtMalloc < _XtCreateXlations
           48 <1% 3 16 operator new < fontObject::getStrike
           40 <1% 1 40 dgai_win_grab_common < XDgaGrabDrawable < Solaris_DG
      A_GetLock < DGA_DeferredLockViewResources < X11DeferredLockViewResources < Java_
      sun_awt_motif_X11Graphics_X11LockViewResources < sysInvokeNative < invokeJNINati
      veMethod
           36 <1% 3 12 operator new < fontObject::getStrike
           32 <1% 1 32 miUnionNonO < miRegionOp < XUnionRegion < XUnionRect
      WithRegion < XtAddExposureToRegion < CompressExposures < XtDispatchEventToWidget
       < _XtDefaultDispatcher
           24 <1% 1 24 calloc < Java_sun_awt_motif_X11Graphics_X11LockViewR
      esources < sysInvokeNative < invokeJNINativeMethod < callmethod_1 < do_execute_j
      ava_method_vararg < execute_java_dynamic_method < saveStackBase
           20 <1% 1 20 calloc < XtCalloc < MakeBindData < ComposeTranslatio
      ns < XtOverrideTranslations < SetValues < CallSetValues < CallSetValues

      When stop at the dgai_win_grab_common, we can the see the following stack trace.
      (Note: this is only one call site, there are several other call site).

      (dbx) stop in dgai_win_grab_common
      dbx: warning: 'dgai_win_grab_common' has no debugger info -- will trigger on fir
      st instruction
      (3) stop in dgai_win_grab_common
      (dbx) cont
      t@8 (l@8) stopped in dgai_win_grab_common at 0xc9d06f60
      0xc9d06f60: dgai_win_grab_common : save %sp, -0x90, %sp
      (dbx) where
      current thread: t@8
      =>[1] dgai_win_grab_common(0x126b60, 0xffffffff, 0x27bd, 0x1, 0xeed5a618, 0x38),
       at 0xc9d06f60
        [2] XDgaGrabDrawable(0x126b60, 0x50018e6, 0xc9d21310, 0x27bd, 0x0, 0xff), at 0
      xc9d069cc
        [3] Solaris_DGA_GetLock(0x1b86c0, 0x289798, 0x50018e6, 0xdea0387c, 0x1, 0x1),
      at 0xcb100da0
        [4] DGA_DeferredLockViewResources(0x1, 0xd7238814, 0x1, 0x1b86c0, 0x1, 0x1), a
      t 0xd7163fa0
        [5] X11DeferredLockViewResources(0x1b86c0, 0x1bed3c, 0x1b86c0, 0x881ba0, 0xeb1
      5818c, 0x1b86c0), at 0xd716457c
        [6] Java_sun_awt_motif_X11Graphics_X11LockViewResources(0xd722b400, 0xd72387d8
      , 0xd7238c00, 0x1b86c0, 0x1, 0x1), at 0xd7164988
        [7] sysInvokeNative(0x1b86c0, 0xd7164600, 0x1bed38, 0x302a2, 0x2, 0x0), at 0xe
      b19a558
        [8] invokeJNINativeMethod(0x1bed40, 0x299288, 0x1bed38, 0x1b86c0, 0x0, 0x1bed1
      0), at 0xeb1428fc
        [9] callmethod_1(0x29b33d, 0x1b86c0, 0x1bed38, 0x1bed04, 0x2987d0, 0x1bed10),
      at 0xeb19ae08
        [10] do_execute_java_method_vararg(0x5aea8, 0x0, 0x0, 0x0, 0x1be800, 0xeb1b50b
      d), at 0xeb14fee0
        [11] execute_java_dynamic_method(0x1b86c0, 0xdb0ba018, 0xeb1b50b8, 0xeb1b50bc,
       0xeed5a618, 0x18), at 0xeb14f778
        [12] saveStackBase(0xeb1ba800, 0xdb0ba018, 0xdb0ba018, 0xeb1b8c00, 0xeb1ba800,
       0xeb16fb24), at 0xeb1809a4
        [13] _start(0x0, 0xecf83d80, 0x0, 0xed92de90, 0x1, 0xfe401000), at 0xec5091bc
      (dbx)

            tnguyensunw Thanh Nguyen (Inactive)
            hongzh Hong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: