Displaying 6 results from an estimated 6 matches for "dispatch_queue_t".
2015 Apr 08
2
[LLVMdev] __sync_add_and_fetch in objc block for global variable on ARM
...l variable. But in case of many..many threads> 5, after every
__sync_add_and_fetch got damaged
...
int32_t count = 0;
...
int
main(int argc, char *argv[])
{
for (i = 1; i < 32; ++i) {
...
char* name;
asprintf(&name, "test.overcommit.%d", i);
dispatch_queue_t queue = dispatch_queue_create(name, NULL);
free(name);
dispatch_set_target_queue(queue, dispatch_get_global_queue(0,
dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0)));
/* async queue */
dispatch_async(queue, ^{
__sync_add_and...
2012 Dec 01
4
[LLVMdev] radr://12777299, "potential pthread/eh bug exposed by libsanitizer"
...s.cc -fno-common -DPIC -o .libs/asan_interceptors.o
In file included from ../../../../gcc-4.8-20121130/libsanitizer/asan/asan_interceptors.cc:15:0:
../../../../gcc-4.8-20121130/libsanitizer/asan/asan_intercepted_functions.h:209:57: error: expected ‘)’ before ‘^’ token
dispatch_queue_t dq, void (^work)(void));
^
etc. So we may be stuck with mach_override until someone steps up to implement the missing blocks support for darwin in FSF gcc.
Jack
>
> On Fri, Nov 30, 2012 at 4:46 AM, Alexander Potapenko <...
2012 Dec 01
0
[LLVMdev] radr://12777299, "potential pthread/eh bug exposed by libsanitizer"
...o .libs/asan_interceptors.o
> In file included from
> ../../../../gcc-4.8-20121130/libsanitizer/asan/asan_interceptors.cc:15:0:
> ../../../../gcc-4.8-20121130/libsanitizer/asan/asan_intercepted_functions.h:209:57:
> error: expected ‘)’ before ‘^’ token
> dispatch_queue_t dq, void (^work)(void));
> ^
> etc. So we may be stuck with mach_override until someone steps up to
> implement the missing blocks support for darwin in FSF gcc.
>
--kcc
> Jack
>
> >
> > On Fri,...
2012 Dec 01
1
[LLVMdev] radr://12777299, "potential pthread/eh bug exposed by libsanitizer"
....o
> > In file included from
> > ../../../../gcc-4.8-20121130/libsanitizer/asan/asan_interceptors.cc:15:0:
> > ../../../../gcc-4.8-20121130/libsanitizer/asan/asan_intercepted_functions.h:209:57:
> > error: expected ‘)’ before ‘^’ token
> > dispatch_queue_t dq, void (^work)(void));
> > ^
> > etc. So we may be stuck with mach_override until someone steps up to
> > implement the missing blocks support for darwin in FSF gcc.
> >
>
>
> --kcc
>
>
>
>...
2012 Nov 30
0
[LLVMdev] radr://12777299, "potential pthread/eh bug exposed by libsanitizer"
Just want to remind everyone that we plan to stop using mach_override in
asanin favor of OSX's native function interposition.
So, we probably don't want to spend too much effort fixing mach_override.
--kcc
On Fri, Nov 30, 2012 at 4:46 AM, Alexander Potapenko <glider at google.com>wrote:
> Looks like this happens on x86_64 because the position of __cxa_throw
> is too far from
2012 Nov 30
3
[LLVMdev] radr://12777299, "potential pthread/eh bug exposed by libsanitizer"
Looks like this happens on x86_64 because the position of __cxa_throw
is too far from the allocated branch island (should be <2G). This can
be solved by allocating the branch islands somewhere near the text
segment (look for kIslandEnd in asan_mac.cc, this is currently
0x7fffffdf0000) or by patching the function with a longer instruction
sequence that stores the jump target in a register and