Why Enabled Assertions (-ea) for Running IDEA?

Is it really necessary to run with IDEA's assertions enabled on its VM command line? Seems like an optimization waiting to happen right there...

MAC: In "/Applications/IntelliJ IDEA 7.0.3.app/Contents/Info.plist":
]]>-Xms16m -Xmx256m -XX:MaxPermSize=120m -Xbootclasspath/p:../lib/boot.jar -ea </string>

Windoze: In C:\Program Files\JetBrains\IntelliJ IDEA 6.0\bin\idea.properties
-Xms32m
-Xmx192m
-XX:MaxPermSize=99m
-ea

Kind Regrads,
Greg K.

Edited by: Gregory Kedge on Apr 14, 2008 11:03 PM

Edited by: Gregory Kedge on Apr 14, 2008 11:04 PM

Edited by: Gregory Kedge on Apr 14, 2008 11:05 PM

Edited by: Gregory Kedge on Apr 14, 2008 11:05 PM

3 comments
Comment actions Permalink

Fifth time's the charm, eh?

I believe the overhead incurred by enabling assertions is actually very low and generally not a problem.


Randall Schulz

0
Comment actions Permalink

Fifth time's the charm, eh?


Silly markup doesn't like '>' as a neighbor..

I believe the overhead incurred by enabling assertions is actually very low and generally not a problem.


Perhaps but, I sure do like to write some interesting assertions that I would cringe at being in production code.. I'll bet the answer that is closer to the truth is that it is QA'ed with assertions on. That deal with the devil assists with debug, but then you have ship like that. :-P

0
Comment actions Permalink

Hello Gregory,

Perhaps but, I sure do like to write some interesting assertions
that I would cringe at being in production code.. I'll bet the answer
that is closer to the truth is that it is QA'ed with assertions on.
That deal with the devil assists with debug, but then you have ship
like that. :-P


IDEA isn't written in C++/MFC, which often suffers from this problem :) so
no, it won't break if you remove the -ea. But the assertions do help in diagnosing
the problems the customers run into.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.