Changeset 12074


Ignore:
Timestamp:
07/29/09 09:15:14 (14 years ago)
Author:
ehuelsmann
Message:

Run the profiler scheduling thread at maximum priority.

Required to make the profiler work on Windows.

File:
1 edited

Legend:

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

    r11488 r12074  
    107107                    thread.resetStack();
    108108                    Thread t = new Thread(profilerRunnable);
    109                     int priority =
    110                         Math.min(Thread.currentThread().getPriority() + 1,
    111                                  Thread.MAX_PRIORITY);
    112                     t.setPriority(priority);
     109                    // Maximum priority doesn't hurt:
     110                    // we're sleeping all the time anyway
     111                    t.setPriority(Thread.MAX_PRIORITY);
    113112                    new Thread(profilerRunnable).start();
    114113                }
Note: See TracChangeset for help on using the changeset viewer.