Removed masking causes failures on JRockit
------------------------------------------
Key: JRUBY-4660
URL: http://jira.codehaus.org/browse/JRUBY-4660
Project: JRuby
Issue Type: Bug
Components: Extensions
Affects Versions: JRuby 1.5
Reporter: Charles Oliver Nutter
Priority: Blocker
Fix For: JRuby 1.5
With this commit: 1312e2915c5f0fcce07fa844acd11d3398d93faa
we started seeing failures on JRockit:
{noformat}
[java] 1)
[java] 'MemoryPointer argument Pointer passed correctly' FAILED
[java] expected: #<MemoryPointer address=0xb57a4168 size=4>,
[java] got: #<Pointer address=0xffffffffb57a4168> (using ==)
[java] ./spec/ffi/memorypointer_spec.rb:43:
[java]
[java] 2)
[java] 'Struct tests Struct#[:pointer]' FAILED
[java] expected: #<MemoryPointer address=0xb54a31b0 size=4>,
[java] got: #<Pointer address=0xffffffffb54a31b0> (using ==)
[java] ./spec/ffi/struct_spec.rb:53:
[java]
[java] 3)
[java] 'Struct tests Struct#[:pointer]=' FAILED
[java] expected: #<MemoryPointer address=0xb475c608 size=4>,
[java] got: #<Pointer address=0xffffffffb475c608> (using ==)
[java] ./spec/ffi/struct_spec.rb:71:
[java]
[java] 4)
[java] 'Buffer#put_pointer put_pointer(0, p).get_pointer(0) == p' FAILED
[java] expected: #<MemoryPointer address=0xb475c608 size=8>,
[java] got: #<Pointer address=0xffffffffb475c608> (using ==)
[java] ./spec/ffi/buffer_spec.rb:133:
{noformat}
This appears to be related to the address-masking that was removed, but
restoring it only fixes two of the failures. Since it appears that the
addresses here are actually invalid, this likely would cause FFI breakage under
JRockit, so I'm marking it as a blocker for 1.5.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email