Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322907 - VirtualMachineImpl should cache its name and version
Summary: VirtualMachineImpl should cache its name and version
Status: VERIFIED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.3 M2   Edit
Assignee: Michael Rennie CLA
QA Contact: Simon Kaegi CLA
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2010-08-17 11:03 EDT by Michael Rennie CLA
Modified: 2010-08-17 11:14 EDT (History)
1 user (show)

See Also:


Attachments
fix (2.88 KB, patch)
2010-08-17 11:03 EDT, Michael Rennie CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2010-08-17 11:03:14 EDT
Created attachment 176795 [details]
fix

code from HEAD

currently a call to either name() or version() will always send a request to the RhinoDebugger, but it does not have to - the name and version do not change during the life-cycle of a VM. 

The patch caches these two values after the first successful request.
Comment 1 Michael Rennie CLA 2010-08-17 11:14:39 EDT
applied to HEAD