Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  How to check whether scalar replacement worked?  (Read 563 times)
0 Members and 2 Guests are viewing this topic.
Offline krausest

Jr. Member
**

Posts: 54


I love YaBB 1G - SP1!


« on: 2012-01-16 14:17:18 »

Scalar replacement in the jvm is pretty cool, but my problem is that I don't know an easy way to check if and where it works. Does anyone have an idea how to check whether an allocation has been replaced?
So far the only way I found is to run a stress test for the method in question with "-verbose:gc" and see if the gc runs less often.
Any better ideas?

Thanks,
Stefan
Offline Spasi

JGO Ninja
***

Posts: 589
Medals: 26


Molon Lave


« Reply #1 on: 2012-01-16 15:42:05 »

You'll need a debug VM and these flags:

-XX:+UnlockDiagnosticVMOptions
-XX:+PrintEscapeAnalysis
-XX:+PrintEliminateAllocations
Offline krausest

Jr. Member
**

Posts: 54


I love YaBB 1G - SP1!


« Reply #2 on: 2012-01-16 16:21:52 »

Very cool - thanks. A debug VM used to be available for pre-release JDKs, but I don't find it anymore for JDK 8 or JDK 7u4. Do you build it yourself or is it still available for download?
Games published by our own members! Go get 'em!
Offline Spasi

JGO Ninja
***

Posts: 589
Medals: 26


Molon Lave


« Reply #3 on: 2012-01-17 03:09:57 »

I use an old build atm. I couldn't find a recent one either, seems they're not available anymore.
Offline ra4king

JGO Kernel
*****

Posts: 3156
Medals: 196


I'm the King!


« Reply #4 on: 2012-01-17 03:30:59 »

Very cool - thanks. A debug VM used to be available for pre-release JDKs, but I don't find it anymore for JDK 8 or JDK 7u4. Do you build it yourself or is it still available for download?
WHOA! So are you like...from the future?! O_O

Offline theagentd

JGO Wizard
****

Posts: 1392
Medals: 88



« Reply #5 on: 2012-01-17 04:54:31 »

Very cool - thanks. A debug VM used to be available for pre-release JDKs, but I don't find it anymore for JDK 8 or JDK 7u4. Do you build it yourself or is it still available for download?
WHOA! So are you like...from the future?! O_O
WILL THE GREAT TOKYO EARTHQUAKE STRIKE BEFORE JUNE THIS YEAR?!

There is no god.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.092 seconds with 19 queries.