| Summary: | [performance] Remove the meaningless call to finalize() in CompilationUnitDeclaration | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Chris Jaun <cmjaun> | ||||
| Component: | General | Assignee: | Chris Jaun <cmjaun> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | david_williams | ||||
| Version: | 3.2 | Keywords: | performance | ||||
| Target Milestone: | 3.2 RC2 | Flags: | david_williams:
pmc_approved+
thatnitind: pmc_approved? (raghunathan.srinivasan) thatnitind: pmc_approved? (naci.dai) thatnitind: pmc_approved? (deboer) thatnitind: pmc_approved? (neil.hauge) thatnitind: pmc_approved? (kaloyan) thatnitind: review+ |
||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | PMC_approved | ||||||
| Attachments: |
|
||||||
|
Description
Chris Jaun
Created attachment 168832 [details]
patch
* Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. CompilationUnitDeclarations are created whenever we need to parse/validate each source file. For larger projects and workspaces this can cause large numbers of these objects, which themselves can be large, to be queued up awaiting their finalize() method to be called by the garbage collector. It's not difficult for this to cause CPU and memory usage to spike unpleasantly. * Is there a work-around? If so, why do you believe the work-around is insufficient? No, the existence of the method itself is the problem. * How has the fix been tested? Is there a test case attached to the Bugzilla record? Has a JUnit Test been added? Measured using profiling tools. * Give a brief technical overview. Who has reviewed this fix? I've reviewed it. * What is the risk associated with this fix? Zero. The method being removed is empty. for heavens sakes ... how'd this happen? No need to answer :) just glad it was found and fixed. Patch checked in. |