Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: =?ISO-8859-1?Q?Alex_R=F8nne_Petersen?= <alex <at> lycus.org>
Subject: Re: Destructor nonsense on dlang.org
Newsgroups: gmane.comp.lang.d.general
Date: Thursday 24th May 2012 14:37:50 UTC (over 4 years ago)
On 24-05-2012 16:00, Michel Fortin wrote:
> On 2012-05-24 13:38:01 +0000, "Steven Schveighoffer"
>  said:
>
>> However, I'd tend to believe Java implementations will attempt to invoke
>> all finalizers of objects left on the heap at program shutdown.
>
> In Java you can call System.runFinalizersOnExit(true), but the default
> is false and this method has been deprecated because unsafe in
> multithreaded environments.
>
> <http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#runFinalization()>
>
>
>

It's only deprecated because Java's way of handling threading and 
finalization is apparently completely broken. See C# and the CLR for a 
system that actually works.

-- 
Alex Rønne Petersen
[email protected]
http://lycus.org
 
CD: 32ms