Do you use sun.misc.Unsafe ?

Take the following survey on API usage to help JDK planning. (Yes, we're not supposed to use it directly. Caveat Utor. But many folks do, including myself.)

Comments:

Yes, I do, to implement a better serialization framework. I also think of relying on it to access some off heap memory

Posted by Thomas Gil on January 26, 2014 at 10:10 AM EST #

Hi Thomas, make sure to take the survey to make your position known. Personally (and I'm not speaking for Oracle in this context), I'd like to see unsafe remain accessible in its current form so that sophisticated users can continue to make good use of it.

Regards, -Dave

Posted by guest on January 26, 2014 at 10:19 AM EST #

Yes, I do use it for performance when serializing objects. What I understand from my conversations with fellow developers is that if anybody actually uses Unsafe it is for serialization.

Posted by guest on January 28, 2014 at 03:17 AM EST #

Yes I've used it before when working with OpenGL native interop to manage a large number of floats

Posted by guest on January 28, 2014 at 07:27 AM EST #

FWIW, on the JRuby project we have been using a "mock" Unsafe to allow compiling in newer features. We then choose whether to use those features based on JVM version at runtime, rather than anchoring our codebase to the lowest common denominator.

See https://github.com/headius/unsafe-mock

Posted by Charles Oliver Nutter on January 28, 2014 at 02:26 PM EST #

Hey Dave,

I hope there is a chance to see the surveys results afterwards. It would be awesomely interesting to see what and how others are using sun.misc.Unsafe.

Thanks
Chris

Posted by Christoph Engelbert on January 29, 2014 at 12:56 AM EST #

Hi Chris,

I agree - it'd be interesting to see the span and relative frequency of the use cases. I'll try to prod the owner of the survey to make the results known.

Regards
Dave

Posted by guest on January 29, 2014 at 09:01 AM EST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Dave

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today