-
Java oggiScritto daNon Autenticatoil 2009-01-27 11:12:00.0 alle 2009-01-27 11:12:00.0No vi prego, oggi no.
-
Re: Java oggiScritto daNon Autenticatoil 2009-01-27 11:12:00.0 alle 2009-01-27 11:12:00.0
- Scritto da:
> No vi prego, oggi no.
sai che la JVM corrente non fa la garbage collection delle istanze di classi anonime?-
Re: Java oggiScritto daNon Autenticatoil 2009-01-27 11:14:00.0 alle 2009-01-27 11:14:00.0
- Scritto da:
>
> - Scritto da:
> > No vi prego, oggi no.
>
> sai che la JVM corrente non fa la garbage
> collection delle istanze di classi
> anonime?
balle!
belink?-
Re: Java oggi- Scritto da:
>
> - Scritto da:
> >
> > - Scritto da:
> > > No vi prego, oggi no.
> >
> > sai che la JVM corrente non fa la garbage
> > collection delle istanze di classi
> > anonime?
>
> balle!
> belink?
http://www.aveterottilcazzofanculizzatevi.com
-
Re: Java oggiScritto daNon Autenticatoil 2009-01-27 11:19:00.0 alle 2009-01-27 11:19:00.0
- Scritto da: nathan71
> - Scritto da:
> >
> > - Scritto da:
> > >
> > > - Scritto da:
> > > > No vi prego, oggi no.
> > >
> > > sai che la JVM corrente non fa la garbage
> > > collection delle istanze di classi
> > > anonime?
> >
> > balle!
> > belink?
>
>
> http://www.aveterottilcazzofanculizzatevi.com
è il tuo blog?
-
-
Re: Java oggiScritto daNon Autenticatoil 2009-01-27 11:18:00.0 alle 2009-01-27 11:18:00.0- Scritto da:
>
> - Scritto da:
> >
> > - Scritto da:
> > > No vi prego, oggi no.
> >
> > sai che la JVM corrente non fa la garbage
> > collection delle istanze di classi
> > anonime?
>
> balle!
> belink?
http://blog.headius.com/2008_09_11_archive.html
The dirty secret of several JVM implementations, Hotspot included, is that there's a separate heap (or a separate generation of the heap) used for special types of data like class definitions, class metadata, and sometimes bytecode or JITted native code. And it couldn't have a scarier name: The Permanent Generation. Except in rare cases, objects loaded into the PermGen are never garbage collected (because they're supposed to be permanent, get it?) and if not used very, very carefully, it will fill up, resulting in the dreaded "java.lang.OutOfMemoryError: PermGen space" that ultimately caused little Billy to go live in the clouds and have tea parties with beautiful mermaids.http://npcontemplation.blogspot.com/2009/01/clojur...

Lambdas are not garbage collected.
Yes. That means lambdas can be the cause of memory leaks.
As described by Charles Nutter, each lambda in Clojure is an anonymous class in Java. The problem is that classes are never garbage collected. They reside in a special place called the PermGen.-
Re: Java oggiScritto daNon Autenticatoil 2009-01-27 11:20:00.0 alle 2009-01-27 11:20:00.0
- Scritto da:
> - Scritto da:
> >
> > - Scritto da:
> > >
> > > - Scritto da:
> > > > No vi prego, oggi no.
> > >
> > > sai che la JVM corrente non fa la garbage
> > > collection delle istanze di classi
> > > anonime?
> >
> > balle!
> > belink?
>
> http://blog.headius.com/2008_09_11_archive.html
>
> The dirty secret of several JVM
> implementations, Hotspot included, is that
> there's a separate heap (or a separate generation
> of the heap) used for special types of data like
> class definitions, class metadata, and sometimes
> bytecode or JITted native code. And it couldn't
> have a scarier name: The Permanent Generation.
> Except in rare cases, objects loaded into the
> PermGen are never garbage collected (because
> they're supposed to be permanent, get it?) and if
> not used very, very carefully, it will fill up,
> resulting in the dreaded
> "java.lang.OutOfMemoryError: PermGen space" that
> ultimately caused little Billy to go live in the
> clouds and have tea parties with beautiful
> mermaids.
>
>http://npcontemplation.blogspot.com/2009/01/clojur

>
> Lambdas are not garbage collected.
>
> Yes. That means lambdas can be the cause of
> memory
> leaks.
>
> As described by Charles Nutter, each lambda in
> Clojure is an anonymous class in Java. The
> problem is that classes are never garbage
> collected. They reside in a special place called
> the
> PermGen.
traduzione:un programmatore incapace produce memory leaks su java-
Re: Java oggiScritto daNon Autenticatoil 2009-01-27 11:21:00.0 alle 2009-01-27 11:21:00.0
- Scritto da:
>
> - Scritto da:
> > - Scritto da:
> > >
> > > - Scritto da:
> > > >
> > > > - Scritto da:
> > > > > No vi prego, oggi no.
> > > >
> > > > sai che la JVM corrente non fa la garbage
> > > > collection delle istanze di classi
> > > > anonime?
> > >
> > > balle!
> > > belink?
> >
> > http://blog.headius.com/2008_09_11_archive.html
> >
> > The dirty secret of several JVM
> > implementations, Hotspot included, is that
> > there's a separate heap (or a separate
> generation
> > of the heap) used for special types of data like
> > class definitions, class metadata, and sometimes
> > bytecode or JITted native code. And it couldn't
> > have a scarier name: The Permanent Generation.
> > Except in rare cases, objects loaded into the
> > PermGen are never garbage collected (because
> > they're supposed to be permanent, get it?) and
> if
> > not used very, very carefully, it will fill up,
> > resulting in the dreaded
> > "java.lang.OutOfMemoryError: PermGen space" that
> > ultimately caused little Billy to go live in the
> > clouds and have tea parties with beautiful
> > mermaids.
> >
> >
>http://npcontemplation.blogspot.com/2009/01/clojur

> >
> > Lambdas are not garbage collected.
> >
> > Yes. That means lambdas can be the cause of
> > memory
> > leaks.
> >
> > As described by Charles Nutter, each lambda in
> > Clojure is an anonymous class in Java. The
> > problem is that classes are never garbage
> > collected. They reside in a special place called
> > the
> > PermGen.
>
> traduzione:un programmatore incapace produce
> memory leaks su
> java
no no no cara, leggi meglio ed eventualmente curati
-
-
-
Re: Java oggi
- Scritto da: achille97
> Basta chiamare System.gc() esplicito.
No, non garantisce che il GC entri in funzione.
Infatti nel codice di TipoStrambo ad un certo punto avevo trovato un mucchio di righe, una dietro l'altra, che richiamavano System.gc()
!
Scriveva certo codice da mettersi le mani nei capelli, ci credo che poi la RAM non bastava mai
`"la realta' non e' cosi' terrificante come vogliono farti credere" - Giambo ` - Wakko che cita Giambo-
Re: Java oggi
- Scritto da: Giambo
>
> - Scritto da: achille97
> > Basta chiamare System.gc() esplicito.
>
> No, non garantisce che il GC entri in funzione.
> Infatti nel codice di TipoStrambo ad un certo
> punto avevo trovato un mucchio di righe, una
> dietro l'altra, che richiamavano System.gc()
> !
>
> Scriveva certo codice da mettersi le mani nei
> capelli, ci credo che poi la RAM non bastava mai
>
Si demanda al lettore l'esercizio di decommentare le chiamate a turno e verificarne gli effetti.package prova; public class GCTest { public static void main(String[] args) { for (int i = 0;i<10;i++) { //System.gc(); IHidden x = new IHidden() { {System.out.println("init "+this);} public void finalize() { System.out.println("finalize "+this);}}; x = null; //System.gc(); } //System.gc(); } } interface IHidden {}-
Re: Java oggi
- Scritto da: achille97
>
> - Scritto da: Giambo
> >
> > - Scritto da: achille97
> > > Basta chiamare System.gc() esplicito.
> >
> > No, non garantisce che il GC entri in funzione.
> > Infatti nel codice di TipoStrambo ad un certo
> > punto avevo trovato un mucchio di righe, una
> > dietro l'altra, che richiamavano System.gc()
> > !
> >
> > Scriveva certo codice da mettersi le mani nei
> > capelli, ci credo che poi la RAM non bastava mai
> >
>
> Si demanda al lettore l'esercizio di decommentare
> le chiamate a turno e verificarne gli
> effetti.
>
>> package prova; > public class GCTest { > public static void main(String[] args) { > for (int i = 0;i<10;i++) { > //System.gc(); > IHidden x = new IHidden() { > {System.out.println("init > "+this);} > public void finalize() { > System.out.println("finalize > "+this);}}; > x = null; > //System.gc(); > } > //System.gc(); > } > } > interface IHidden {} >
Mi rispondo da solo: il finalize del Class!
crappy crappy crappy-
Re: Java oggi
- Scritto da: achille97
> Mi rispondo da solo: il finalize del Class!
> crappy crappy crappy
Avve avrebbe fatto meglio
`"la realta' non e' cosi' terrificante come vogliono farti credere" - Giambo ` - Wakko che cita Giambo-
-
Re: Java oggi
- Scritto da: achille97
> > Avve avrebbe fatto meglio
>
> Mi devo mettere a studiare per la certificazione.
> Per non rimanere
> crappy.
La certificazione ... Non ho mai avuto bisogno di farla
Pero' ho letto qualche domanda, e mi pare tosta
!
`"la realta' non e' cosi' terrificante come vogliono farti credere" - Giambo ` - Wakko che cita Giambo
-
-
-
-
-
-
-
Re: Java oggiScritto daavvelentaniCubicolarioil 2009-01-27 14:18:00.0 alle 2009-01-27 14:18:00.0Trollate totali: 18184
I think happiness is love
- Vladimir Putin
-
-
-
-