Skip to content

Commit

Permalink
Merge branch 'master' into codecache
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Dec 17, 2009
2 parents 7fee4a2 + ef6c935 commit 79ce626
Show file tree
Hide file tree
Showing 88 changed files with 1,509 additions and 413 deletions.
2 changes: 1 addition & 1 deletion bin/ast
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ end
if ARGV.length > 1 if ARGV.length > 1
puts "You may only specify one script (see --help)" puts "You may only specify one script (see --help)"
exit 0 exit 0
elsif ARGV == 1 elsif ARGV.length == 1
if expression if expression
puts "-e and a script is not a valid combination (see --help)" puts "-e and a script is not a valid combination (see --help)"
exit 0 exit 0
Expand Down
2 changes: 1 addition & 1 deletion bin/gem.bat
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ IF NOT "%~f0" == "~f0" GOTO :WinNT
@"jruby" -S "gem" %1 %2 %3 %4 %5 %6 %7 %8 %9 @"jruby" -S "gem" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF GOTO :EOF
:WinNT :WinNT
@"jruby" "%~dpn0" %* @"%~dp0jruby.exe" "%~dpn0" %*
2 changes: 1 addition & 1 deletion bin/jirb.bat
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ IF NOT "%~f0" == "~f0" GOTO :WinNT
@"jruby" -S "jirb" %1 %2 %3 %4 %5 %6 %7 %8 %9 @"jruby" -S "jirb" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF GOTO :EOF
:WinNT :WinNT
@"jruby" "%~dpn0" %* @"%~dp0jruby.exe" "%~dpn0" %*
2 changes: 1 addition & 1 deletion bin/jirb_swing.bat
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ IF NOT "%~f0" == "~f0" GOTO :WinNT
@"jruby" -S "jirb_swing" %1 %2 %3 %4 %5 %6 %7 %8 %9 @"jruby" -S "jirb_swing" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF GOTO :EOF
:WinNT :WinNT
@"jruby" "%~dpn0" %* @"%~dp0jruby.exe" "%~dpn0" %*
4 changes: 3 additions & 1 deletion bin/jrubyd.bat
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,9 @@
@ECHO OFF @ECHO OFF

@set debug_args=-J-Xdebug -J-Xrunjdwp:transport=dt_shmem,server=y,suspend=y @set debug_args=-J-Xdebug -J-Xrunjdwp:transport=dt_shmem,server=y,suspend=y

IF NOT "%~f0" == "~f0" GOTO :WinNT IF NOT "%~f0" == "~f0" GOTO :WinNT
@"jruby.exe" %debug_args% %1 %2 %3 %4 %5 %6 %7 %8 %9 @"jruby.exe" %debug_args% %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF GOTO :EOF
:WinNT :WinNT
@"jruby.exe" %debug_args% "%~dpn0" %* @"%~dp0jruby.exe" %debug_args% "%~dpn0" %*
2 changes: 1 addition & 1 deletion bin/rake.bat
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ IF NOT "%~f0" == "~f0" GOTO :WinNT
@"jruby" -S "rake" %1 %2 %3 %4 %5 %6 %7 %8 %9 @"jruby" -S "rake" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF GOTO :EOF
:WinNT :WinNT
@"jruby" "%~dpn0" %* @"%~dp0jruby.exe" "%~dpn0" %*
2 changes: 1 addition & 1 deletion bin/rdoc.bat
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ IF NOT "%~f0" == "~f0" GOTO :WinNT
@"jruby" -S "rdoc" %1 %2 %3 %4 %5 %6 %7 %8 %9 @"jruby" -S "rdoc" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF GOTO :EOF
:WinNT :WinNT
@"jruby" "%~dpn0" %* @"%~dp0jruby.exe" "%~dpn0" %*
2 changes: 1 addition & 1 deletion bin/ri.bat
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ IF NOT "%~f0" == "~f0" GOTO :WinNT
@"jruby" -S "ri" %1 %2 %3 %4 %5 %6 %7 %8 %9 @"jruby" -S "ri" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF GOTO :EOF
:WinNT :WinNT
@"jruby" "%~dpn0" %* @"%~dp0jruby.exe" "%~dpn0" %*
19 changes: 14 additions & 5 deletions build.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -147,10 +147,17 @@
<include name="**/*.properties"/> <include name="**/*.properties"/>
</fileset> </fileset>
<filterset> <filterset>
<filter token="os.arch" value="${os.arch}"/> <filter token="version.ruby.major" value="${version.ruby.major}"/>
<filter token="version.ruby" value="${version.ruby}"/>
<filter token="version.ruby.patchlevel" value="${version.ruby.patchlevel}"/>
<filter token="version.ruby1_9.major" value="${version.ruby1_9.major}"/>
<filter token="version.ruby1_9" value="${version.ruby1_9}"/>
<filter token="version.ruby1_9.patchlevel" value="${version.ruby1_9.patchlevel}"/>
<filter token="build.date" value="${build.date}"/>
<filter token="version.jruby" value="${version.jruby}"/>
<filter token="java.specification.version" value="${java.specification.version}"/> <filter token="java.specification.version" value="${java.specification.version}"/>
<filter token="javac.version" value="${javac.version}"/> <filter token="javac.version" value="${javac.version}"/>
<filter token="build.date" value="${build.date}"/> <filter token="os.arch" value="${os.arch}"/>
</filterset> </filterset>
</copy> </copy>
</target> </target>
Expand Down Expand Up @@ -297,6 +304,7 @@
<zipfileset src="${build.lib.dir}/jffi-i386-OpenBSD.jar"/> <zipfileset src="${build.lib.dir}/jffi-i386-OpenBSD.jar"/>
<zipfileset src="${build.lib.dir}/jffi-x86_64-OpenBSD.jar"/> <zipfileset src="${build.lib.dir}/jffi-x86_64-OpenBSD.jar"/>
<zipfileset src="${build.lib.dir}/jffi-i386-Windows.jar"/> <zipfileset src="${build.lib.dir}/jffi-i386-Windows.jar"/>
<zipfileset src="${build.lib.dir}/jffi-x86_64-Windows.jar"/>
<zipfileset src="${build.lib.dir}/jffi-s390x-Linux.jar"/> <zipfileset src="${build.lib.dir}/jffi-s390x-Linux.jar"/>
<zipfileset src="${build.lib.dir}/joda-time-1.6.jar"/> <zipfileset src="${build.lib.dir}/joda-time-1.6.jar"/>
<zipfileset src="${build.lib.dir}/dynalang-0.3.jar"/> <zipfileset src="${build.lib.dir}/dynalang-0.3.jar"/>
Expand Down Expand Up @@ -443,6 +451,7 @@
<jarjar destfile="${dest.lib.dir}/${filename}"> <jarjar destfile="${dest.lib.dir}/${filename}">
<fileset dir="${jruby.classes.dir}"/> <fileset dir="${jruby.classes.dir}"/>
<fileset dir="${build.dir}/jar-complete"> <fileset dir="${build.dir}/jar-complete">
<exclude name="META-INF/jruby.home/lib/ruby/site_ruby/shared/builtin/**"/>
<exclude name="META-INF/jruby.home/lib/ruby/1.9/**"/> <exclude name="META-INF/jruby.home/lib/ruby/1.9/**"/>
</fileset> </fileset>
<zipfileset src="${build.lib.dir}/asm-3.2.jar"/> <zipfileset src="${build.lib.dir}/asm-3.2.jar"/>
Expand Down Expand Up @@ -990,12 +999,12 @@
<sysproperty key="jruby.thread.pool.enabled" value="@{thread.pooling}"/> <sysproperty key="jruby.thread.pool.enabled" value="@{thread.pooling}"/>
<sysproperty key="jruby.reflection" value="@{reflection}"/> <sysproperty key="jruby.reflection" value="@{reflection}"/>
<sysproperty key="jruby.launch.inproc" value="@{inproc}"/> <sysproperty key="jruby.launch.inproc" value="@{inproc}"/>
<sysproperty key="emma.coverage.out.file" value="${test.results.dir}/coverage.emma" /> <sysproperty key="emma.coverage.out.file" value="${test.results.dir}/coverage.emma" />
<sysproperty key="emma.coverage.out.merge" value="true" /> <sysproperty key="emma.coverage.out.merge" value="true" />
<sysproperty key="emma.verbosity.level" value="silent" /> <sysproperty key="emma.verbosity.level" value="silent" />


<arg line="@{jruby.args}"/> <arg line="@{jruby.args}"/>
<arg value="${base.dir}/bin/rake"/> <arg line="-S rake"/>
<arg line="@{rake.targets}"/> <arg line="@{rake.targets}"/>
</java> </java>
</sequential> </sequential>
Expand Down
Binary file added build_lib/jffi-x86_64-Windows.jar
Binary file not shown.
Binary file modified build_lib/jnr-posix.jar
Binary file not shown.
8 changes: 6 additions & 2 deletions default.build.properties
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ jruby.test.memory=512M
jruby.test.jvm=java jruby.test.jvm=java
ruby.executable=/usr/bin/ruby ruby.executable=/usr/bin/ruby
install4j.executable=/Applications/install4j\ 4/bin/install4jc install4j.executable=/Applications/install4j\ 4/bin/install4jc
version.jruby=1.5.0.dev version.ruby=1.8.7
version.ruby.major=1.8 version.ruby.major=1.8
version.ruby.minor=7 version.ruby.minor=7

version.ruby.patchlevel=174
version.ruby1_9.major=1.9
version.ruby1_9=1.9.2dev
version.ruby1_9.patchlevel=24787
version.jruby=1.5.0.dev
2 changes: 1 addition & 1 deletion lib/ruby/1.8/Win32API.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def self.find_type(name)


def self.map_types(spec) def self.map_types(spec)
if spec.kind_of?(String) if spec.kind_of?(String)
spec.split // spec.split(//)
elsif spec.kind_of?(Array) elsif spec.kind_of?(Array)
spec spec
else else
Expand Down
1 change: 0 additions & 1 deletion lib/ruby/site_ruby/shared/builtin/javasupport.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@


require 'builtin/javasupport/java' require 'builtin/javasupport/java'
require 'builtin/javasupport/proxy/array' require 'builtin/javasupport/proxy/array'
require 'builtin/javasupport/proxy/interface'
require 'builtin/javasupport/utilities/base' require 'builtin/javasupport/utilities/base'
require 'builtin/javasupport/utilities/array' require 'builtin/javasupport/utilities/array'
require 'builtin/javasupport/core_ext' require 'builtin/javasupport/core_ext'
Expand Down
27 changes: 0 additions & 27 deletions lib/ruby/site_ruby/shared/builtin/javasupport/proxy/interface.rb

This file was deleted.

4 changes: 3 additions & 1 deletion lib/ruby/site_ruby/shared/ffi/library.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -136,10 +136,12 @@ def callback(*args)
else else
[ nil, args[0], args[1] ] [ nil, args[0], args[1] ]
end end

options = Hash.new options = Hash.new
options[:convention] = defined?(@ffi_convention) ? @ffi_convention : :default options[:convention] = defined?(@ffi_convention) ? @ffi_convention : :default
options[:enums] = @ffi_enums if defined?(@ffi_enums) options[:enums] = @ffi_enums if defined?(@ffi_enums)
cb = FFI::CallbackInfo.new(find_type(ret), params.map { |e| find_type(e) })
cb = FFI::CallbackInfo.new(find_type(ret), params.map { |e| find_type(e) }, options)


# Add to the symbol -> type map (unless there was no name) # Add to the symbol -> type map (unless there was no name)
unless name.nil? unless name.nil?
Expand Down
1 change: 1 addition & 0 deletions lib/ruby/site_ruby/shared/ffi/times.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Foreign
SC_CLK_TCK = com.kenai.constantine.platform.Sysconf::_SC_CLK_TCK.value SC_CLK_TCK = com.kenai.constantine.platform.Sysconf::_SC_CLK_TCK.value


extend FFI::Library extend FFI::Library
ffi_lib FFI::Library::LIBC
class Times < FFI::Struct class Times < FFI::Struct
layout \ layout \
:utime => :long, :utime => :long,
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby-complete/pom.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<dependency> <dependency>
<groupId>org.jruby.ext.posix</groupId> <groupId>org.jruby.ext.posix</groupId>
<artifactId>jnr-posix</artifactId> <artifactId>jnr-posix</artifactId>
<version>1.0.5</version> <version>1.0.8</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
Expand Down
2 changes: 1 addition & 1 deletion maven/jruby/pom.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<dependency> <dependency>
<groupId>org.jruby.ext.posix</groupId> <groupId>org.jruby.ext.posix</groupId>
<artifactId>jnr-posix</artifactId> <artifactId>jnr-posix</artifactId>
<version>1.0.5</version> <version>1.0.8</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<version>1.5.0dev</version> <version>1.5.0dev</version>
<name>JRuby Shared</name> <name>JRuby Shared</name>
<url>http://www.jruby.org/</url> <url>http://www.jruby.org/</url>
<description>A 1.8.5 compatible Ruby interpreter written in 100% pure Java</description> <description>A 1.8.7 compatible Ruby interpreter written in 100% pure Java</description>


<issueManagement> <issueManagement>
<system>JIRA</system> <system>JIRA</system>
Expand Down
4 changes: 2 additions & 2 deletions rubyspecs.revision
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are the pointers to the 'stable/frozen' versions of # These are the pointers to the 'stable/frozen' versions of
# mspec and rubyspecs, used to for our CI runs. # mspec and rubyspecs, used to for our CI runs.


mspec.revision=bcec47c70e0678a29fd0c1345358c4daf7b971a3 mspec.revision=1521f846a8e9c6da51697e962c39dc1f3c0fc473


rubyspecs.revision=9b8d16adaa79a5b627f76b968d2e730b1ae3476f rubyspecs.revision=515547fc2e2024d3730fe6af925f37781e6cbd0e
8 changes: 3 additions & 5 deletions spec/java_integration/types/coercion_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -424,11 +424,9 @@ def receiveByte(obj)
vri.result.should == obj vri.result.should == obj
vri.result.class.should == Fixnum vri.result.class.should == Fixnum


pending "char appears to be getting signed/unsigned-garbled" do vri_handler.receiveCharObj(obj).should == obj
vri_handler.receiveCharObj(obj).should == obj vri.result.should == obj
vri.result.should == obj vri.result.class.should == Fixnum
vri.result.class.should == Fixnum
end


vri_handler.receiveIntObj(obj).should == obj vri_handler.receiveIntObj(obj).should == obj
vri.result.should == obj vri.result.should == obj
Expand Down
6 changes: 0 additions & 6 deletions spec/jruby.1.8.mspec
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ class MSpecScript
set :core, [ set :core, [
SPEC_DIR + '/core', SPEC_DIR + '/core',


# FIXME: Temporarily exclusion until JRUBY-4180 is fixed.
'^' + SPEC_DIR + '/core/proc/case_compare_spec.rb',
'^' + SPEC_DIR + '/core/proc/element_reference_spec.rb',
'^' + SPEC_DIR + '/core/proc/yield_spec.rb',
'^' + SPEC_DIR + '/core/proc/call_spec.rb',

# 1.9 # 1.9
'^' + SPEC_DIR + '/core/basicobject' '^' + SPEC_DIR + '/core/basicobject'
] ]
Expand Down
1 change: 1 addition & 0 deletions spec/tags/1.8/ruby/core/proc/call_tags.txt
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
fails(JRUBY-4180):Proc#call can receive block arguments
1 change: 1 addition & 0 deletions spec/tags/1.8/ruby/core/proc/element_reference_tags.txt
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
fails(JRUBY-4180):Proc#[] can receive block arguments
Loading

0 comments on commit 79ce626

Please sign in to comment.