A JVM Does That?
Top Comments
All Comments (22)
-
@tremgaming Here's an idea.
Drink a shot every time he says GC :D
-
29:30 Good explanation of the problem with relying on fnalizers and garbage collection to release resources.
-
To the commenter about LRU behavior....
This was with the stock Sun (Oracle) JVM.
Nothing in the SoftRef spec claims to maintain any sort of last-ref time, and I don't believe Oracles implementation maintains this info either.
-
The audio quality is a bit poor, actually hurt to listen to.
-
I believe you may be wrong with respect to soft references. A good JVM can do much better than a shot in the dark to decide which references to throw out, because a last-reference time is maintained as a part of the reference, permitting a LRU algorithm to be applied by the jvm when deciding which references to throw out. What your implementation does is another question, but it is there.
There are still limitations but LRU avoids the basic sort of pathological cases you describe here.
-
The JVMs wouldn't be so bad if it weren't for the little dirt details that the vast majority of them is used to run code written by Java developers in love with design patterns and completely detached from reality.
Just saying...
-
How do get information on this stuff?
-
When he says that bytecodes have shortcomeings, does he mean stack based bytecode or bytecode in general?
-
@tremgaming If you can take five shots in an hour and not be drunk, you might need to cut back a little.
-
and standard java - sun(oracle) or ibm work's better.
@fnyklr
#01:56 #03:41 #09:25 #25:09 #50:47
isnt that bad - at least still not drunk
apart from that: its a very interesting talk
tremgaming 11 months ago 17
drinking game: drink a shot every time he says jadajadajada...
fnyklr 11 months ago 17