changeset 5182:70aaaa83b93a

fixed gcc warning; added note to README_GRAAL about disabling the bootstrap step
author Doug Simon <doug.simon@oracle.com>
date Mon, 02 Apr 2012 12:19:18 +0200
parents b97ef124c3ea
children e1e681a5558e db2286df9149
files README_GRAAL.txt src/os_cpu/linux_x86/vm/os_linux_x86.cpp
diffstat 2 files changed, 17 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/README_GRAAL.txt	Mon Apr 02 11:39:32 2012 +0200
+++ b/README_GRAAL.txt	Mon Apr 02 12:19:18 2012 +0200
@@ -1,3 +1,5 @@
+Building Graal
+--------------
 There is a Python script in graal/mxtool/mx.py that simplifies working with the code
 base. It requires Python 2.7. While you can run this script by using an absolute path,
 it's more convenient to add graal/mxtool to your PATH environment variable so that the
@@ -15,10 +17,21 @@
   mx build debug
   mx build fastdebug
 
-To run one of the correspong VM instances:
+Running Graal
+-------------
+
+To run the VM, use 'mx vm' in place of the standard 'java' command:
 
-  mx --product vm ...
+  mx vm ...
+
+To select the fastdebug or debug versions of the VM:
+
   mx --fastdebug vm ...
   mx --debug vm ...
 
-The default is --product.
\ No newline at end of file
+Graal has an optional bootstrap step where it compiles itself before
+compiling any application code. This bootstrap step currently takes about 7 seconds
+on a fast x64 machine. It's useful to disable this bootstrap step when running small
+programs with the -XX:-BootstrapGraal options. For example:
+
+  mx vm -XX:-BootstrapGraal ...
--- a/src/os_cpu/linux_x86/vm/os_linux_x86.cpp	Mon Apr 02 11:39:32 2012 +0200
+++ b/src/os_cpu/linux_x86/vm/os_linux_x86.cpp	Mon Apr 02 12:19:18 2012 +0200
@@ -313,7 +313,7 @@
           if (thread->thread_state() == _thread_in_Java) {
             // Throw a stack overflow exception.  Guard pages will be reenabled
             // while unwinding the stack.
-            if (WizardMode) tty->print("implicit: %08x%08x\n", ((long)pc) >> 32, pc);
+            if (WizardMode) tty->print("implicit: %08x%08x\n", ((long long)pc) >> 32, pc);
             stub = SharedRuntime::continuation_for_implicit_exception(thread, pc, SharedRuntime::STACK_OVERFLOW);
           } else {
             // Thread was in the vm or native code.  Return and try to finish.