Skip to main content
Home

Main navigation

  • Home
  • Books
  • Contact
    • Contact Form

Breadcrumb

  1. Home

Errata for Java RAMBO Manifesto

Earn beer money! If you spot an error, send it my way. Each technical error earns $5. Grammar errors may earn an award, but they're harder to define and so I'm not making guarantees. I reserve the right to decide what constitutes an error and the right to award multiple prizes in the case of a tie. 
 

 


 

Omissions:



None reported yet.
 

Errors:


David Jamburia writes:
 

The FAQ asks, “Aren’t all objects kept in RAM?” and answers, “Well, yes.” That is too absolute for Java/JVM behavior. 
The JVM specification defines the heap as the runtime data area from which class instances and arrays are allocated, but it does not require that heap storage correspond to physical RAM. More directly, Oracle’s HotSpot documentation says escape analysis can make an object “scalar replaceable” and eliminate that object’s allocation from generated code entirely. 
A technically safer wording would be along the lines of: live Java objects are conceptually represented in the JVM’s runtime memory model, typically using heap storage, but the JVM does not guarantee physical-RAM residence and an optimizing JVM may eliminate some allocations entirely. 


This is certainly a fair point. I'll note that some have worked out ways to pin the JVM heap into RAM with small C wrappers that use mlock, but it's a bit of a kludge and seems to go against the spirit of the mantra of write once, run anywhere. 


 

  • Log in to post comments

Books

  • Agents Unleashed
  • Attention Must Be Paid, But for $800?
  • Compression Algorithms
  • Digital Cash 2nd Edition
  • Digital Copyright Protection
  • Disappearing Cryptography 1st Edition
  • Disappearing Cryptography 2nd Edition
  • Disappearing Cryptography 3rd Edition
  • Free for All
  • Future Ride
  • How To Hide Online
  • Java Beans Programming
  • Java RAMBO Manifesto
    • Errata for Java RAMBO Manifesto
    • FAQ for Java RAMBO Manifesto
    • Table of Contents for Java RAMBO Manifesto
  • Policing Online Games
  • SAT Sneak Attack
  • Translucent Databases
RSS feed
Powered by Drupal