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 211841 - Handle the case when stack frames are invalidated during evaluation.
Summary: Handle the case when stack frames are invalidated during evaluation.
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.2
Hardware: All All
: P4 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-27 12:13 UTC by Martin Entlicher
Modified: 2015-09-01 09:46 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 Martin Entlicher 2012-04-27 12:13:51 UTC
A probable cause of issue #141061 is, that the stack frames are invalidated by other events occurring during expression evaluation.

E.g.: If the target thread, that we perform the evaluation in, gets suspended in the backend (that can happen at any time and can not be prevented from), the thread might get suspended twice and we need to call "resume" on it, to reduce the suspend count to 1. This unfortunately invalidates the stack frame.
Therefore we need to synchronize such resume of thread or event, with the evaluation that might be running concurrently.
Comment 1 Martin Entlicher 2012-11-15 15:17:15 UTC
Moving to P4, it looks like this occurs occasionally on JDK 6 only.
Comment 2 Martin Entlicher 2015-09-01 09:46:56 UTC
This does not seem to be an issue any more.