search for: managedstaticbase

Displaying 9 results from an estimated 9 matches for "managedstaticbase".

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 at...
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; >...
2012 Jan 13
2
[LLVMdev] Memory leaks in LLVM on linux
...I get are: ==19966== 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 0x5D869...
2017 Sep 19
3
Help with segfault in llvm_shutdown with LLVM 5.0 Release build
...() #1 0x00005555561c333b in llvm::object_deleter<llvm::SmallVector<std::pair<llvm::PassManagerBuilder::ExtensionPointTy, std::function<void (llvm::PassManagerBuilder const&, llvm::legacy::PassManagerBase&)> >, 8u> >::call(void*) () #2 0x000055555658492d in llvm::ManagedStaticBase::destroy() const () #3 0x00005555565849e5 in llvm::llvm_shutdown() () #4 0x000055555589e0a2 in main () Best, Dipto
2013 Mar 28
0
[LLVMdev] Avoid Valgrind's still-reachable leak warnings
...C6C: llvm::sys::MutexImpl::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::PassRegistratio...
2017 Sep 19
0
Help with segfault in llvm_shutdown with LLVM 5.0 Release build
...c333b in > llvm::object_deleter<llvm::SmallVector<std::pair<llvm::PassManagerBuilder::ExtensionPointTy, > std::function<void (llvm::PassManagerBuilder const&, > llvm::legacy::PassManagerBase&)> >, 8u> >::call(void*) () > #2  0x000055555658492d in llvm::ManagedStaticBase::destroy() const () > #3  0x00005555565849e5 in llvm::llvm_shutdown() () > #4  0x000055555589e0a2 in main () > See https://reviews.llvm.org/D33515 for context.  I thought we fixed the problem, but it looks like you found some other way to trigger it. -Eli -- Employee of Qualcomm Innov...
2012 Dec 13
0
[LLVMdev] Memory leaks after llvm_shutdown
...t.exe!llvm::LLVMContext::~LLVMContext() Line 62 + 0x38 bytes C++ llvm_test.exe!llvm::LLVMContext::`scalar deleting destructor'() + 0x16 bytes C++ llvm_test.exe!llvm::object_deleter<llvm::LLVMContext>::call(void * Ptr) Line 32 + 0x37 bytes C++ llvm_test.exe!llvm::ManagedStaticBase::destroy() Line 68 + 0x10 bytes C++ llvm_test.exe!llvm::llvm_shutdown() Line 78 + 0xb bytes C++ Also I tried not to use GlobalContext object and created my own one. This method didn't help - GlobalContext was still lazy creating by PseudoSourceValue ctor . I would understand to...
2019 Nov 18
2
Unable to parse command line more than once using llvm libraries?
Thanks, I tried calling ResetAllOptionOccurrences after the run like this… // Compile the module TimeCompilations times to give better compile time // metrics. for (unsigned I = TimeCompilations; I; --I) if (int RetVal = compileModule(argv, Context)) return RetVal; if (YamlFile) YamlFile->keep(); cl::ResetAllOptionOccurrences(); return 0; } Unfortunately
2010 Mar 23
2
[LLVMdev] How to avoid memory leaks
...textImpl(llvm::LLVMContext&) (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) ==2050...