avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Carey (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (AVRO-1313) Java: Add system property for disabling sun.misc.Unsafe
Date Tue, 30 Apr 2013 23:22:17 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13646145#comment-13646145
] 

Scott Carey edited comment on AVRO-1313 at 4/30/13 11:21 PM:
-------------------------------------------------------------

Even better, the check at runtime when loading should check that it will work.

This patch (-v2) changes the runtime test to have fields of all types and validates that it
works with all of them before loading an implementation.

Both Unsafe and Reflect cases of these code paths are covered in the Unit tests.
                
      was (Author: scott_carey):
    Even better, the check at runtime when loading should check that it will work.

This changes the runtime test to have fields of all types and validates that it works with
all of them before loading an implementation.

Both Unsafe and Reflect cases of these code paths are covered in the Unit tests.
                  
> Java: Add system property for disabling sun.misc.Unsafe
> -------------------------------------------------------
>
>                 Key: AVRO-1313
>                 URL: https://issues.apache.org/jira/browse/AVRO-1313
>             Project: Avro
>          Issue Type: Improvement
>            Reporter: Scott Carey
>            Assignee: Scott Carey
>             Fix For: 1.7.5
>
>         Attachments: AVRO-1313.patch, AVRO-1313-v2.patch
>
>
> We should be able to disable use of sun.misc.Unsafe.
> I propose that if the system property "avro.disable.unsafe" is non-null, we use reflection
rather than Unsafe.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message