Share via


Java class data sharing

Java 1.5 introduces class data sharing: https://java.sun.com/j2se/1.5.0/docs/guide/vm/class-data-sharing.html

This looks a lot like .Net's ngen concept, except it only works on core classes(for .net's equivalence, mscorlib.dll).

Maybe their next step is introducing ngen?

Comments

  • Anonymous
    April 12, 2004
    The comment has been removed
  • Anonymous
    April 12, 2004
    Good grief--are Sun and Microsoft going to get into a mud wrestling match about who "innovated" with the most obvious technology?

    Sharing of data between instances of the JVM has been on Sun's TODO list since almost as soon as Java came out. It's not Sun engineers that came up with that "brilliant" idea (nor Microsoft engineers, for that matter), it's the users.

    The real question is why it takes something as cumbersome as "ngen" to do it or why Sun doesn't do sharing for everything. Code, JIT output, and data should be shared automatically and for everything whenever it is possible, rather than involving a step like "ngen". "Ngen" is already an inconvenient and substandard shortcut for the implementors because apparently they couldn't figure out how to do things right.
  • Anonymous
    April 12, 2004
    The comment has been removed
  • Anonymous
    January 04, 2008
    PingBack from http://boxing.247blogging.info/?p=80