This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | OutOfMemoryError in code model tests | ||
---|---|---|---|
Product: | cnd | Reporter: | Vladimir Kvashin <vkvashin> |
Component: | Code Model | Assignee: | Vladimir Kvashin <vkvashin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
possible fix
The same fix with minor improvements and all tests passed (just in case, to have a safe and easy fix) |
Description
Vladimir Kvashin
2014-04-21 09:46:22 UTC
It fails on file cnd.modelimpl/test/unit/data/org/netbeans/modules/cnd/modelimpl/trace/FileModelTest/10000parameters.c The file contains function that has 10000 parameters. When writing a parameter, we also write its scope key. The scope key writes function signature in the case it's from macro. The signature length is ~40K, and we write it 10000 times when writing parameter. Created attachment 146867 [details]
possible fix
Created attachment 146883 [details]
The same fix with minor improvements and all tests passed (just in case, to have a safe and easy fix)
Integrated into 'main-silver', will be available in build *201404230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d5699a617b4f User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixed #243960 - OutOfMemoryError in code model tests reviewed with Alexander Simon; pushed to release80 on enum as change set 17e7a29d1bb0; awaiting for tests in release80 contest to pass fixed in releases (release80 branch): http://hg.netbeans.org/releases/rev/8087d7ab5b34 Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/8087d7ab5b34 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixed #243960 - OutOfMemoryError in code model tests (transplanted from d5699a617b4fa7e3247ecc7814d11b61a629ca1c) |