Changeset 12076


Ignore:
Timestamp:
07/29/09 19:54:50 (14 years ago)
Author:
ehuelsmann
Message:

Fix a race in the profiler startup phase.

On my hardware, the profiling value got set to 'true'
after the scheduling thread tried to run its first
loop; meaning it never set sampleNow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/Profiler.java

    r12074 r12076  
    4848        public void run()
    4949        {
     50            profiling = true; // make sure we don't fall through on the first iteration
    5051            while (profiling) {
    5152                sampleNow = true;
     
    113114                }
    114115                out._writeLine("; Profiler started.");
    115                 profiling = true;
    116116            }
    117117            return thread.nothing();
Note: See TracChangeset for help on using the changeset viewer.