participate


Java Virtual Machine (JVM) - What's the .hotspot_compiler file ?
<<   Back to Forum  |   Give us Feedback
This topic has 2 replies on 1 page.
Marchioni
Posts:58
Registered: 12/6/99
What's the .hotspot_compiler file ?   
Jun 30, 2003 12:36 AM

 
Hi all,
I see sometimes mentioned in the Bug Parade to fix a bug
adding an .hotspot_compiler file to the VM. What does it do?
it excludes from the hotspot some methods calls? If so, does
it work recursively (for subsequent methods calls) ?
Thanks a lot
Francesco
 
sst
Posts:4
Registered: 7/14/97
Re: What's the .hotspot_compiler file ?   
Oct 17, 2003 5:08 AM (reply 1 of 2)  (In reply to original post )

 
The .hotspot_compiler file gives information to the compiler on how to compile classes.
For example, you can prevent optimization including a line like :

exclude com/foo/Bar get

that would prevent compilation of the method com.foo.Bar.get()

The file must be in the application's directory.

For what I know, this is undocummented feature and may change from one JVM release to another.

Hope this helps
 
jrose
Posts:10
Registered: 6/21/06
Re: What's the .hotspot_compiler file ?   
Jun 21, 2006 3:35 PM (reply 2 of 2)  (In reply to #1 )

 
You can put compilation commands on the command line instead of in the .hotspot_compiler file. This lets you invoke the VM without worrying about building a file in the current directory.

-XX:CompileCommand=exclude,my/pkg/MyClass,theMethod

The commas are interchangeable with spaces, and are more convenient than spaces on a command line, since they don't need quoting to protect them from the shell.

Also, if you have a canned list of compilation commands in a file, you don't need to name it .hotspot_compiler. Just refer to it by name this way:

-XX: CompileCommandFile=/my/canned/command/file

See also my comments here: http://forum.java.sun.com/thread.jspa?messageID=4273869
 
This topic has 2 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 56
  • Guests : 138

About Sun forums
  • Sun Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Sun Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums