OpenJDK 8 and fastdebug

Henri Gomez henri.gomez at gmail.com
Fri Apr 20 04:58:21 PDT 2012


Well, it seems my build is not fully debug enabled :

java -version -XX:+PrintOptoAssembly
openjdk version "1.8.0-jdk8-b30-x64-lambda-fastdebug"
OpenJDK Runtime Environment (build 1.8.0-jdk8-b30-x64-lambda-fastdebug-20120420)
OpenJDK 64-Bit Server VM (build 24.0-b04, mixed mode)

---

java -XX:+PrintOptoAssembly
Unrecognized VM option 'PrintOptoAssembly'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

---

java -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly
OpenJDK 64-Bit Server VM warning: PrintAssembly is enabled; turning on
DebugNonSafepoints to gain additional output
Could not load hsdis-amd64.dylib; library not loadable; PrintAssembly
is disabled
Syntaxe : java [-options] class [args...]

Hum ;-(

2012/4/20 Remi Forax <forax at univ-mlv.fr>:
> Just hsdis, but maybe the one from Graal that use a better assembler syntax.
>
> Rémi
>
> Sent from my Phone
>
> ----- Reply message -----
> From: "Krystal Mok" <rednaxelafx at gmail.com>
> To: "Remi Forax" <forax at univ-mlv.fr>
> Cc: <jdk8-dev at openjdk.java.net>
> Subject: OpenJDK 8 and fastdebug
> Date: Fri, Apr 20, 2012 09:44
> I see. That makes sense.BTW, is it hsdis, or is there a new disassembler plugin?
>
> - Kris
>
> On Fri, Apr 20, 2012 at 3:35 PM, Remi Forax <forax at univ-mlv.fr> wrote:
>
> The idea is to bundle jadis with the fast debug VM.
>
> Rémi
>
> Sent from my Phone
>
>
> ----- Reply message -----
> From: "Krystal Mok" <rednaxelafx at gmail.com>
> To: "Rémi Forax" <forax at univ-mlv.fr>
>
> Cc: <jdk8-dev at openjdk.java.net>
> Subject: OpenJDK 8 and fastdebug
> Date: Fri, Apr 20, 2012 08:55
>
>
> PrintAssembly is available in product builds, too. You'll just need to set -XX:+UnlockDiagnosticVMOptions before setting -XX:+PrintAssembly.
>
> On the other hand, -XX:+PrintOptoAssembly is only available in a debug build.
>
> - Kris
>
> On Fri, Apr 20, 2012 at 2:00 PM, Rémi Forax <forax at univ-mlv.fr> wrote:
>
>
> On 04/20/2012 07:28 AM, Henri Gomez wrote:
>
>
> Just set
>
>
>
> SKIP_FASTDEBUG_BUILD=false
>
>
>
> (I don't know what role DEBUG_NAME plays)
>
>
>
>
>
>
> Relative question, how can I check a java exec is in fastdebug mode ?
>
>
>
>
> Check "java -version", it will show it is fastdebug.
>
>
> It seems good (http://openjdk-osx-build.googlecode.com/files/OpenJDK-OSX-8-x64-lambda-fastdebug-jdk-b30-20120420.dmg)
>
>
>
>
>
> openjdk version "1.8.0-jdk8-b30-x64-lambda-fastdebug"
>
> OpenJDK Runtime Environment (build 1.8.0-jdk8-b30-x64-lambda-fastdebug-20120420)
>
> OpenJDK 64-Bit Server VM (build 24.0-b04, mixed mode)
>
>
>
> Thanks
>
>
>
>
> Many thanks, Henry,
>
> now people can use -XX:+PrintAssembly :)
>
>
>
> Rémi


More information about the jdk8-dev mailing list