Bug 176762 - VM slows down due to method entry breakpoint being misplaced
Summary: VM slows down due to method entry breakpoint being misplaced
Status: RESOLVED DUPLICATE of bug 182650
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-08 17:34 EST by Nick Edgar CLA
Modified: 2007-05-03 11:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2007-03-08 17:34:05 EST
3.3 M5
VM: IBM 1.5.0 SR4

I'm seeing some really weird behaviour:

- set a method entry breakpoint on a local class's method
- the whole VM slows down by a factor of 10 or so

Turns out it's setting the breakpoint on the outer class (which doesn't have this method) instead of the inner one.

More details:
- in a class called TitlePart, there's the following method:
	private void addDragSupport(Form proxy) {
		
		DragSourceAdapter dragSourcelistener= new DragSourceAdapter() {
			@Override
			public void dragStart(DragSourceEvent event) {
				Object element= getElement();
				// <snip>     
                        }
                };
                // <snip>
       }

- if I try to set a breakpoint on the first line of dragStart, i.e. the element assignment statement, all works well (no slowdown).  In the Breakpoints view, this is indicated as: 
TitlePart$3 [line: 279] - dragStart(DragSourceEvent)

- if instead I try to set a method entry breakpoint on dragStart, I see a 10x slowdown of the whole VM (it's not even hitting this method).  In the Breakpoints view, this is indicated as:
TitlePart [entry] - dragStart(DragSourceEvent)

- Note the class shown is TitlePart, not TitlePart$3.  TitlePart does not have a dragStart method.

So I suspect:
1. debug info in the class is off
2. when we try to set an invalid method entry breakpoint in the VM, it doesn't fail but slows everything down, as if it's checking on every method entry
Comment 1 Darin Wright CLA 2007-05-03 11:12:51 EDT
Basically, we don't currently support method entry breakpoints on anonymous types.

*** This bug has been marked as a duplicate of bug 182650 ***