Skip to content

Instantly share code, notes, and snippets.

@woodie
Forked from headius/gist:280301
Created January 18, 2010 23:27
Show Gist options
  • Save woodie/280490 to your computer and use it in GitHub Desktop.
Save woodie/280490 to your computer and use it in GitHub Desktop.
CodeCache = Awesomeness
~/projects/jruby ➔ jruby -J-Djruby.jit.threshold=0 -J-Djruby.jit.codeCache=`pwd`/codecache -e "load 'test/mri/sample/test.rb'"
assignment : ..................................................................................................................................................................................................................................................................................................................................................................condition : ..if/unless : ...case : .....while/until : ........exception : .......array : .......................................hash : ...........................iterator : .........................................................................................float : ................................................................................bignum : ...............................string & char : ..............................................................assignment : ..........call : ......proc : .........eval : .......................................const : .....clone : .....marshal : ....pack : ...math : ..struct : ......variable : ........defined? : ............alias : ......path : .......................gc : ...
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Tests: 848. (Ok: 848; Failed: 0)
~/projects/jruby ➔ ls codecache/ruby/jit/ | head
a_054C239C7D56B9E12365663518D395F2AA48D686.class
a_DB717692F3546BA4911DFAACAFE89A13A7EC495F.class
aaa_6B2156867484AA2DF9855D73199B967AD728B9B5.class
argument_test_E3F0DC1C2E795386378A9F8137DCC76CAE8F988A.class
bar_12C896B7D85011E2A6F4759F322A73E8E34001E4.class
bar_DCE80409EAB8CBE1E7EB9F20ADC664EEF6D0E7D5.class
block_test_8EB7A24A2CE14D5373F642237D47A7D375BB9425.class
default_66FFC6C66A07BEBA0C51CEA2E1A5A8E48B96B992.class
defined_test_D3C2C3D514824D3969202B193B1C46A4A793F87A.class
dyna_var_check_639611CDC01C83BF8C2E90F69F448377F14A914A.class
~/projects/jruby ➔ jruby -J-Djruby.jit.threshold=0 -J-Djruby.jit.codeCache=`pwd`/codecache -J-Djruby.jit.debug=true -e "load 'test/mri/sample/test.rb'" 2>&1 | grep "loading cached code" | head
loading cached code from: /Users/headius/projects/jruby/codecache/ruby/jit/test_check_88F752FEB69DEE445DC93C09BB6FE6014CBFD4DD.class
loading cached code from: /Users/headius/projects/jruby/codecache/ruby/jit/test_ok_75902DA0372DD65EE948FB47928FDAE54ACB4A3D.class
loading cached code from: /Users/headius/projects/jruby/codecache/ruby/jit/f_21ACAE118F5A2C2F8042C910E6A4FF0BD2737022.class
loading cached code from: /Users/headius/projects/jruby/codecache/ruby/jit/f_933243B3F7DE3E3B4977DBF199B608265418ED27.class
loading cached code from: /Users/headius/projects/jruby/codecache/ruby/jit/f_7903A8385262B1BEE006765E85A8467BA679C0C7.class
loading cached code from: /Users/headius/projects/jruby/codecache/ruby/jit/f_F704DDB8C3422DFAF2952894C956D0738C8B308B.class
loading cached code from: /Users/headius/projects/jruby/codecache/ruby/jit/f_ABF3F8341D65AC0E940F77A5396A84010CDA8945.class
loading cached code from: /Users/headius/projects/jruby/codecache/ruby/jit/f_724A000BE2BC1BF891025245B3F16AD9638A61E6.class
loading cached code from: /Users/headius/projects/jruby/codecache/ruby/jit/f_1BD441C15C1EEC0D11D17E1EA05D768CD8EE0A67.class
loading cached code from: /Users/headius/projects/jruby/codecache/ruby/jit/f_44039FFADAEF5FE400B200D955CCFFA99D483AA1.class
~/projects/jruby ➔ jruby -J-Djruby.jit.threshold=0 -J-cp codecache -J-Djruby.jit.debug=true -e "load 'test/mri/sample/test.rb'" 2>&1 | grep "found jitted code" | head
found jitted code in classloader: ruby.jit.test_check_88F752FEB69DEE445DC93C09BB6FE6014CBFD4DD
assignment : found jitted code in classloader: ruby.jit.test_ok_75902DA0372DD65EE948FB47928FDAE54ACB4A3D
..................................................................found jitted code in classloader: ruby.jit.f_21ACAE118F5A2C2F8042C910E6A4FF0BD2737022
.found jitted code in classloader: ruby.jit.f_933243B3F7DE3E3B4977DBF199B608265418ED27
.found jitted code in classloader: ruby.jit.f_7903A8385262B1BEE006765E85A8467BA679C0C7
.found jitted code in classloader: ruby.jit.f_F704DDB8C3422DFAF2952894C956D0738C8B308B
.found jitted code in classloader: ruby.jit.f_ABF3F8341D65AC0E940F77A5396A84010CDA8945
.found jitted code in classloader: ruby.jit.f_724A000BE2BC1BF891025245B3F16AD9638A61E6
.found jitted code in classloader: ruby.jit.f_1BD441C15C1EEC0D11D17E1EA05D768CD8EE0A67
.found jitted code in classloader: ruby.jit.f_44039FFADAEF5FE400B200D955CCFFA99D483AA1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment