Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Nov 2017 16:42:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 131597] [kernel] c++ exceptions very slow on FreeBSD 7.1/amd64
Message-ID:  <bug-131597-8-q2nkQFDuff@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-131597-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-131597-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D131597

--- Comment #24 from Mikael Simonsson <m@mikaelsimonsson.com> ---
Hi,

I ran into this today with Clang 5, is there anything I can do to help fix
this?

Here's my test case:

#include <cstdio>
#include <stdexcept>

int main(int argc, char**)
{
    ::printf("Before\n");

    try
    {
        if (argc !=3D 2)
        {
            throw std::invalid_argument{""};
        }
    }
    catch (...)
    {
    }

    ::printf("After\n");

    return 0;
}

If I trigger the exception, ktrace shows 27 (!) sigprocmask calls between t=
he
write calls.

Compiled with:
clang++ -DNDEBUG -O2 -march=3Dnative  -std=3Dc++17 -stdlib=3Dlibc++ -fuse-l=
d=3Dlld

Thanks,
Mikael

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-131597-8-q2nkQFDuff>