[Mono-dev] Patch: XSLT thread safety

Joshua Tauberer jit at occams.info
Mon Jul 14 07:59:22 EDT 2008


 From time to time I encounter index out of range errors in 
Mono.Xml.Xsl.XslSortEvaluator during my multi-threaded use of a single 
XSLT transform object, which I think was due to modifying the state of a 
XslSortEvaluator object during the processing of a document.

I'm pretty sure the attached patch fixes the problem. At the least it 
didn't make things worse for me.

I can commit if it's ok, though I don't know/remember how to run the 
XSLT tests so I haven't done that. Pointers welcome.

-- 
- Josh Tauberer

http://razor.occams.info

"Yields falsehood when preceded by its quotation!  Yields
falsehood when preceded by its quotation!" Achilles to
Tortoise (in "Godel, Escher, Bach" by Douglas Hofstadter)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xslt.patch
Type: text/x-diff
Size: 2237 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080714/898736f3/attachment.bin 


More information about the Mono-devel-list mailing list