From: Godmar Back (gback@cs.utah.edu)
Date: Mon Nov 16 1998 - 02:00:59 EST
> 
> On Nov 16, 1998, Godmar Back <gback@cs.utah.edu> wrote:
> 
> >> 
> >> Have you considered that ResourceManager might be doing this only
> >> because `Class.forName("sun.misc.VM")' did not throw (assuming you
> >> have classes.zip in your classpath)?  I haven't checked, but it's
> >> quite a reasonable assumption.
> 
> > It's certainly possible, but if you were a HotJava developer working
> > at Sun, is that something you would worry about?
> 
> If this would provide means to some very good optimizations, I
> certainly would :-)
> 
You mean to check for sun.misc.VM, and apply optimizations if found?
That would make sense.  What I meant is: why would they even check for
sun.misc.VM at all.  To encourage third-party JVMs? 
Just assume it's there and apply your optimizations.
We don't know, though.  So here's something interesting:
gback@marker [7](/q/gback/HotJava1.1.5) > bin/hotjava 
HOTJAVA_HOME is set to /q/gback/HotJava1.1.5
[Starting HotJava]
[Initializing globals]
sunw.hotjava.security.SecurityPolicy could not be loaded as a security manager
Failed to locate native function:
        sun/misc/VM.getState()I
java.lang.UnsatisfiedLinkError
        at sunw/hotjava/misc/ResourceManager.internalCreate(88)
        at sunw/hotjava/misc/ResourceManager.getManager(80)
        at sunw/hotjava/misc/ResourceManager.create(72)
        at sunw/hotjava/Main.main(144)
dumping live threads:
tid 0x1587010, status SUSPENDED flags DONTSTOP 
  `Alloc State Notifier' blockqueue 0x809200 (0x1587010->|) 
tid 0x157e010, status SUSPENDED flags DONTSTOP 
  `Red Alloc State Notifier' blockqueue 0x8099a0 (0x157e010->|) 
tid 0x13ea010, status SUSPENDED flags DONTSTOP 
  `Request Processor' blockqueue 0xb3c260 (0x13ea010->|) 
tid 0x1323010, status SUSPENDED flags ALARM 
  `AWT-EventQueue-0'
tid 0x12f0010, status SUSPENDED flags 
  `Thread-0' blockqueue 0x89adc4 (0x12f0010->|) 
tid 0xc2b010, status SUSPENDED flags DONTSTOP 
  `gc' blockqueue 0xb3c9e0 (0xc2b010->|) 
tid 0xc22010, status SUSPENDED flags DONTSTOP 
  `finaliser' blockqueue 0xb3c9c0 (0xc22010->|) 
(you'll have thread dump facility too once I'm done with this and check
everything in)
        - Godmar
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:03 EDT