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 76964 - Multi-dimensional arrays are not listed in the Live Results when doing Memory Profiling
Summary: Multi-dimensional arrays are not listed in the Live Results when doing Memory...
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
: 75349 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-26 17:24 UTC by _ gsporar
Modified: 2007-09-24 14:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gsporar 2006-05-26 17:24:21 UTC
Using NB 5/Profiler 5/JDK5 on WinXP.  This sample program from Stefan Michaelis
shows the problem:

public class Main {
     /** Creates a new instance of Main */
   public Main() {
       int[][] bla2 = new int[20000][100];
       int[] bla1 = new int[2000000];
             while (true){
           synchronized(this){
           try{
               wait(1000);
           }catch(InterruptedException ie){}
           }
       }
   }

   public static void main(String[] args) {
       new Main();
         } } 

----

When doing memory profiling, bla2 never shows up in the Live Results window. 
The heap usage shown by the telemetry graph is correct, however.
Comment 1 Tomas Hurka 2006-05-29 14:46:46 UTC
This a really serious issue. No allocations for multi-dimensional arrays are tracked. Changing priority to P1  
and setting target milestone to 5.5.
Comment 2 Tomas Hurka 2006-05-29 20:57:11 UTC
Fixed in trunk.
Comment 3 Tomas Hurka 2006-05-30 18:44:20 UTC
Fix merged to release55 branch
Comment 4 Tomas Hurka 2006-06-28 10:09:10 UTC
*** Issue 75349 has been marked as a duplicate of this issue. ***
Comment 5 Alexander Kouznetsov 2007-09-24 14:30:00 UTC
Verified with 20070920