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 204977 - Empty memory snapshot is taken
Summary: Empty memory snapshot is taken
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 09:09 UTC by Petr Cyhelsky
Modified: 2011-11-16 15:49 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 Petr Cyhelsky 2011-11-11 09:09:28 UTC
Product Version: NetBeans IDE Dev (Build 201111100600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b18
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)

Empty memory snapshot is taken if the take snapshot action is invoked soon after start of application.

Steps: memory profile anagram game -> (do NOT have live results window open) invoke take snapshot action from profiler control panel just after the anagram game window is shown (to be certain that there actually are some data to be shown) -> empty memory snapshot
Comment 1 J Bachorik 2011-11-11 14:14:37 UTC
ProfilerClient.getMemoryProfilingResultsSnapshot() is over-synchronized - it prevents the snapshot data having been processed before generating the snapshot. This method is called from UI only so I am relaxing the synchronization and hoping that noone will have fast enough fingers to cause some data races.

Fixed in http://hg.netbeans.org/profiler-main/rev/9798b56c448f
Comment 2 Quality Engineering 2011-11-16 15:49:01 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/9798b56c448f
User: Jaroslav Bachorik <yardus@netbeans.org>
Log: #204977: ProfilerClient.getMemoryProfilingResultsSnapshot() is over-synchronized - it prevents the snapshot data having been processed before generating the snapshot. This method is called from UI only so I am relaxing the synchronization and hoping that noone will have fast enough fingers to cause some data races.