Changeset 230889 in webkit


Ignore:
Timestamp:
Apr 20, 2018 11:42:26 PM (6 years ago)
Author:
Carlos Garcia Campos
Message:

[GLIB] ERROR: Thread was unable to be detached when running /jsc/vm test in debug
https://bugs.webkit.org/show_bug.cgi?id=184815

Reviewed by Michael Catanzaro.

This is because in the test we are calling both join and detach. We should only call join.

  • TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:

(testsJSCVirtualMachine):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r230888 r230889  
     12018-04-20  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GLIB] ERROR: Thread was unable to be detached when running /jsc/vm test in debug
     4        https://bugs.webkit.org/show_bug.cgi?id=184815
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        This is because in the test we are calling both join and detach. We should only call join.
     9
     10        * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
     11        (testsJSCVirtualMachine):
     12
    1132018-04-20  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Tools/TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp

    r230888 r230889  
    25112511        });
    25122512        thread->waitForCompletion();
    2513         thread->detach();
    25142513
    25152514        GRefPtr<JSCValue> object = adoptGRef(jsc_context_get_value(context.get(), "f"));
     
    25512550        }
    25522551
    2553         for (auto& thread : threads) {
     2552        for (auto& thread : threads)
    25542553            thread->waitForCompletion();
    2555             thread->detach();
    2556         }
    25572554
    25582555        g_assert_true(ok);
Note: See TracChangeset for help on using the changeset viewer.