summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-10-01 23:36:18 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-10-01 23:37:06 +0200
commit2f9e766ec269e4e4dd8ddb0f92d915366110af6d (patch)
treeb354ef76c241df2b19f6d126073121c7091d8e41 /test
parent1088af1236b64b89118e566ce3856b8101b391a9 (diff)
downloadscala-2f9e766ec269e4e4dd8ddb0f92d915366110af6d.tar.gz
scala-2f9e766ec269e4e4dd8ddb0f92d915366110af6d.tar.bz2
scala-2f9e766ec269e4e4dd8ddb0f92d915366110af6d.zip
fixes a bug in a weak cache in runtime reflection
Entries in SynchronizedTypes.uniques could previously be garbage collected in-between a successful call to contains and an actual cache lookup. The patch could be a one-liner, but I don't want to use HOFs in this function, whose prototype is a hotspot in the compiler. Also the fix doesn't touch scalac in any way. It only applies to reflective universes that provide runtime reflection functionality.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions