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.

Bug 253625 - [newcodemodel] OutOfMemoryError when preprocessing delay.c
Summary: [newcodemodel] OutOfMemoryError when preprocessing delay.c
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2015-07-21 17:23 UTC by Vladimir Kvashin
Modified: 2016-01-29 14:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2015-07-21 17:23:31 UTC
I've got a stable OutOfMemoryError when code model preprocesses
cnd.modelimpl/test/unit/data/org/netbeans/modules/cnd/modelimpl/trace/FileModel3Test/delay.c
Comment 1 Vladimir Kvashin 2015-07-21 21:08:47 UTC
Unfortunately .hprof file is 1G, so I can not attach it here. Nut it is available by request.

I also wasn't correct enough stating the problem. I launched o.n.m.cnd.modelimpl.impl.services.ServicesTest and got OOME on another test. But yourkit showed me that it was parse of delay.c who consumed huge amount of memory.
Comment 2 Vladimir Kvashin 2015-07-21 21:20:18 UTC
I temporarily commented out the content of delay.c to allow other tests running:
http://hg.netbeans.org/cnd-main/rev/a7be0e70f00d
Please restore it as soon as the bug is fixed.
Comment 3 Vladimir Voskresensky 2015-07-22 07:29:54 UTC
I will have a look
Comment 4 Vladimir Voskresensky 2015-07-22 07:51:47 UTC
Test requires 6G and runs 120(cold)/90(hot) secs.
Native one requires ~2G and runs 4 sec
The output of -E is empty. It is compile time "delay" for compilers using PP magic
Comment 5 petrk 2015-12-29 15:37:45 UTC
Fixed at sputnik. Changeset: 16256:7250abf9b350
Comment 6 Quality Engineering 2016-01-12 02:27:55 UTC
Integrated into 'main-silver', will be available in build *201601120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1b62975a3338
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: updated test after changed clank binary for  #253625 - [newcodemodel] OutOfMemoryError when preprocessing delay.c
(transplanted from c44166cdfce97cdf05337b8ea872526444a5cfe2)