DESCRIPTION

Bug 205678 - [Clipboard] Using x11vnc with clipboard transfer causes
eclipse to OOM

Sometimes Eclipse can misinterpret native data received from clipboard.
No one seriously would copy/paste or drag/drop more then 1.000.000
resources: only creating an *empty* array of 100.000.000 resources will
cause OOME on 512 MB heap size (default for shipped Eclipse packages),
same with copy/paste of a *full* array of 10.000.000 elements.

The patch introduces a maximum limit for ResourceTransfer of 1.000.000
elements. In case the elements count exceed this limit, an error message
will be logged to the error log and the transfer operation will be
cancelled. JUnit test for the new limit is added too.

Change-Id: I872151018c9212dafe0487ed71beec3943c570e5
Signed-off-by: Jayvion Booth xxx@xxx.xxx

COMMENTS

author: Brenden Conley
date: 2015-02-08 22:26:20.000000000

Patch Set 7:

Build Started https://hudson.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/4444/

-------------------------------------
author: Brenden Conley
date: 2015-02-08 22:42:51.000000000

Patch Set 7: Code-Review-1

Build Unstable 

https://hudson.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/4444/ : UNSTABLE

-------------------------------------
author: Brenden Conley
date: 2015-02-09 18:07:39.000000000

Patch Set 7: -Code-Review

Build Started https://hudson.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/4458/

-------------------------------------
author: Zaid Mosley
date: 2015-02-09 18:25:17.000000000

Patch Set 7:

> Wondering if this can be automated?

IIRC the releng tooling has an option for that.

-------------------------------------
author: Brenden Conley
date: 2015-02-09 18:25:52.000000000

Patch Set 7: Code-Review-1

Build Unstable 

https://hudson.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/4458/ : UNSTABLE

-------------------------------------
author: Zaid Mosley
date: 2015-02-10 07:07:49.000000000

Patch Set 7: Code-Review+1 Verified+1

Thanks Andrey, unfortunately for this Gerrit review (but good for the greater good), Thibault migrated the navigator test suite to JUnit 4 via https://bugs.eclipse.org/bugs/show_bug.cgi?id=457870. Could you adjust your change?

-------------------------------------
