From 9f17b5114728884f7e7ca6f7017a7e08f35bd8c6 Mon Sep 17 00:00:00 2001 From: John Camelon Date: Mon, 16 Aug 2004 20:02:31 +0000 Subject: [PATCH] Workaround submitted for Bug 54040 - [Scalability] UI Responsiveness very sluggish when editing large source files Parser.translationUnit() rethrows OutOfMemoryError after shielding it from the parser.failParse()/errorHandling(). --- .../parser/org/eclipse/cdt/internal/core/parser/Parser.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java index 532f4257003..4376ebb6634 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java @@ -220,6 +220,7 @@ public abstract class Parser extends ExpressionParser implements IParser catch( OutOfMemoryError oome ) { logThrowable( "translationUnit", oome ); //$NON-NLS-1$ + throw oome; } catch( Exception e ) {