Bug 122763 - [builder] OutOfMemoryError while cleaning org.eclipse.jdt.core project
Summary: [builder] OutOfMemoryError while cleaning org.eclipse.jdt.core project
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Maxime Daniel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 122888 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-05 11:01 EST by Frederic Fusier CLA
Modified: 2006-02-14 06:21 EST (History)
1 user (show)

See Also:


Attachments
Fix restrictions read/write (1.61 KB, patch)
2006-01-05 11:34 EST, Maxime Daniel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2006-01-05 11:01:23 EST
Using I20060103-0800 + HEAD content.

With runtime patched with HEAD content or eclipse session self-hosted I systematically get an OOME while cleaning org.eclipse.jdt.core project.

Here's the stack trace:
SimpleLookupTable.<init>(int) line: 36
State.read(IProject, DataInputStream) line: 254
JavaBuilder.readState(IProject, DataInputStream) line: 114
JavaModelManager.readState(IProject) line: 2226
JavaModelManager.getLastBuiltState(IProject, IProgressMonitor) line: 1267
JavaBuilder.getLastState(IProject) line: 356
JavaBuilder.build(int, Map, IProgressMonitor) line: 139
BuildManager$2.run() line: 593
SafeRunner.run(ISafeRunnable) line: 37
Platform.run(ISafeRunnable) line: 785
BuildManager.basicBuild(int, IncrementalProjectBuilder, Map, MultiStatus, IProgressMonitor) line: 168
BuildManager.basicBuild(IProject, int, ICommand[], MultiStatus, IProgressMonitor) line: 202
BuildManager$1.run() line: 231
Comment 1 Maxime Daniel CLA 2006-01-05 11:25:51 EST
Introduced with bug 76266. Need to realign read/write operations on access restrictions templates.
Comment 2 Maxime Daniel CLA 2006-01-05 11:34:54 EST
Created attachment 32527 [details]
Fix restrictions read/write
Comment 3 Maxime Daniel CLA 2006-01-05 11:35:19 EST
Changed org.eclipse.jdt.internal.core.builder.State to:
- raise the version number (again - apologies);
- get read/write in sync for restrictions.
Comment 4 Maxime Daniel CLA 2006-01-05 12:01:31 EST
I suggest that the verification be made on the source code.
Comment 5 Maxime Daniel CLA 2006-01-06 05:04:03 EST
This fix triggers a full build of the workspace.
Comment 6 Frederic Fusier CLA 2006-01-06 05:43:47 EST
*** Bug 122888 has been marked as a duplicate of this bug. ***
Comment 7 Jerome Lanneluc CLA 2006-02-14 06:21:50 EST
Verified for 3.2 M5 using build I20060214-0010