8005697: Add StampedLock - JEP 155 (original) (raw)
Peter Levart peter.levart at gmail.com
Mon Jan 28 13:42:35 UTC 2013
- Previous message: 8005697: Add StampedLock - JEP 155
- Next message: 8005697: Add StampedLock - JEP 155
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 01/28/2013 01:22 PM, Doug Lea wrote:
On 01/28/13 07:16, Aleksey Shipilev wrote:
On 01/28/2013 03:32 PM, Chris Hegarty wrote:
Webrev: http://cr.openjdk.java.net/~chegar/8005697/ver.00/webrev/webrev/
The only nit I find unlucky is that we need to duplicate the TLR code in LockSupport. It looks like we would be better off with the helper class sharing this functionality. I would speculate Doug will contaminate more classes in j.u.c.* with these TLR copy-paste patches, and so we can figure this out once and for all when the dust settles. Yes, exactly so. Maybe someday with module support there will be a nicer way of coping with package-protection problems accessing Thread fields. Until then, because j.u.c has two subpackages (atomic, locks), there's no nice workaround that I know of. -Doug What about copying the Unsafe? A singleton instance that does access checks in the public factory method with usages that cache this instance privately in static fields...
Regards, Peter
- Previous message: 8005697: Add StampedLock - JEP 155
- Next message: 8005697: Add StampedLock - JEP 155
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]