search for: registermanagedstatic

Displaying 5 results from an estimated 5 matches for "registermanagedstatic".

2016 Dec 26
2
A potential race on StaticList in RegisterManagedStatic
Ptr member of ManagedStaticBase is now atomic. In ManagedStaticBase::RegisterManagedStatic we have such code: void *Tmp = Creator(); Ptr.store(Tmp, std::memory_order_release); DeleterFn = Deleter; // Add to list of managed statics. Next = StaticList; StaticList = this; StaticList is not atomic and not guarded by any fence. The same applies to the...
2016 Dec 26
0
A potential race on StaticList in RegisterManagedStatic
Though it won't actually help to guard this: while (StaticList) - a fence here is needed... On Mon, Dec 26, 2016 at 9:20 AM, Viacheslav Nikolaev < viacheslav.nikolaev at gmail.com> wrote: > Ptr member of ManagedStaticBase is now atomic. > In ManagedStaticBase::RegisterManagedStatic we have such code: > > void *Tmp = Creator(); > > Ptr.store(Tmp, std::memory_order_release); > DeleterFn = Deleter; > > // Add to list of managed statics. > Next = StaticList; > StaticList = this; > > > StaticList is not atomic...
2012 Jan 13
2
[LLVMdev] Memory leaks in LLVM on linux
...= 4 bytes in 1 blocks are still reachable in loss record 1 of 12 ==19966== at 0x402569A: operator new(unsigned int) (vg_replace_malloc.c:255) ==19966== by 0x5D9BBE8: void* llvm::object_creator<llvm::PassRegistry>() (ManagedStatic.h:25) ==19966== by 0x5E05AB6: llvm::ManagedStaticBase::RegisterManagedStatic(void* (*)(), void (*)(void*)) const (ManagedStatic.cpp:47) ==19966== by 0x5D9B73E: llvm::ManagedStatic<llvm::PassRegistry>::operator*() (ManagedStatic.h:67) ==19966== by 0x5D997E1: llvm::PassRegistry::getPassRegistry() (PassRegistry.cpp:34) ==19966== by 0x5D86960: llvm::PassRegistrat...
2013 Mar 28
0
[LLVMdev] Avoid Valgrind's still-reachable leak warnings
...exImpl::MutexImpl(bool) (Mutex.cpp:49) ==26332== by 0xD41D5A: llvm::sys::SmartMutex<true>::SmartMutex(bool) (Mutex.h:94) ==26332== by 0xD3E81F: void* llvm::object_creator<llvm::sys::SmartMutex<true> >() (ManagedStatic.h:26) ==26332== by 0x165AA95: llvm::ManagedStaticBase::RegisterManagedStatic(void* (*)(), void (*)(void*)) const (ManagedStatic.cpp:50) ==26332== by 0xD3C372: llvm::ManagedStatic<llvm::sys::SmartMutex<true> >::operator*() (ManagedStatic.h:68) ==26332== by 0x1605FE2: llvm::PassRegistry::removeRegistrationListener(llvm::PassRegistrationListener*) (PassRegist...
2010 Mar 23
2
[LLVMdev] How to avoid memory leaks
...Context&) (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x8D8BA8: llvm::LLVMContext::LLVMContext() (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x8D9055: void* llvm::object_creator<llvm::LLVMContext>() (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x94CD83: llvm::ManagedStaticBase::RegisterManagedStatic(void* (*)(), void (*)(void*)) const (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x8D8C43: llvm::getGlobalContext() (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x421665: vgen::CodeCreator::CodeCreator(char*, unsigned int, unsigned int, bool) (CodeCreator.cpp:32) ==20504==    by 0x41935E: mai...