Project

Profile

Help

Revision ca892245

Added by Michael Kay over 13 years ago

Fix bug 1878851 (multithreading problem in Expression.getSlotsUsed()) in the 8.8 and 8.9 branches.

View differences:

latest8.8/bj/net/sf/saxon/expr/ComputedExpression.java
509 509
     * Should only be called if the caller has established that there is a dependency on local variables.
510 510
     */
511 511

  
512
    public int[] getSlotsUsed() {
512
    public synchronized int[] getSlotsUsed() {
513 513
        if (slotsUsed != null) {
514 514
            return slotsUsed;
515 515
        }
latest8.9/bj/net/sf/saxon/expr/Expression.java
736 736
     * Should only be called if the caller has established that there is a dependency on local variables.
737 737
     */
738 738

  
739
    public int[] getSlotsUsed() {
739
    public synchronized int[] getSlotsUsed() {
740 740
        if (slotsUsed != null) {
741 741
            return slotsUsed;
742 742
        }

Also available in: Unified diff