#vulnerable code 
                                public int getLoad() {
        int res = 0;
        for (int i = 0; i < queues.length; i++) {
            MpscConcurrentQueue queue = (MpscConcurrentQueue) queues[i];
            int load = queue.size() * 100 / queue.getCapacity();
            if ( load > res )
                res = load;
        }
        return res;
    } 
                            #location 4 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                public int getLoad() {
        int res = 0;
        final Actor actors[] = this.actors;
        for (int i = 0; i < actors.length; i++) {
            MpscConcurrentQueue queue = (MpscConcurrentQueue) actors[i].__mailbox;
            int load = queue.size() * 100 / queue.getCapacity();
            if ( load > res )
                res = load;
        }
        return res;
    }