VirtualBox

Changeset 65857 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 23, 2017 12:27:19 PM (8 years ago)
Author:
vboxsync
Message:

testdriver/reporter.py: Redid locking to account for garbage collection causing trouble when it calls del methods with log statements. Since those statements can be very useful, the reporter now disables GC while it's owning the lock, but allow recursion in case GC runs before we disables it or immediately after reenabling it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/reporter.py

    r65856 r65857  
    7676
    7777        # Disable GC to avoid __del__ w/ log statement randomly reenter the logger.
    78         if cRecursion == 1:
     78        if self.cRecursion == 1:
    7979            self.fRestoreGC = gc.isenabled();
    8080            if self.fRestoreGC:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette