Displaying 20 results from an estimated 48 matches for "new_allocated".
2012 May 04
2
[LLVMdev] StructTypes into one
Is it possible to merge StructTypes with different names like:
%"class.std::allocator.4" = type { i8 }
%"class.__gnu_cxx::new_allocator.5" = type { i8 }
%"class.std::allocator.0" = type { i8 }
%"class.__gnu_cxx::new_allocator.1" = type { i8 }
%"class.std::allocator.0.6" = type { i8 }
merge into
%"class.__gnu_cxx::new_allocator" = type
2020 Apr 15
0
[PATCH nbdkit 3/9] server: Use new vector library when building the list of extents.
...ts->extents[i];
+ assert (i < exts->extents.size);
+ return exts->extents.ptr[i];
}
/* Insert *e in the list at the end. */
static int
append_extent (struct nbdkit_extents *exts, const struct nbdkit_extent *e)
{
- if (exts->nr_extents >= exts->allocated) {
- size_t new_allocated;
- struct nbdkit_extent *new_extents;
-
- new_allocated = exts->allocated;
- if (new_allocated == 0)
- new_allocated = 1;
- new_allocated *= 2;
- new_extents =
- realloc (exts->extents, new_allocated * sizeof (struct nbdkit_extent));
- if (new_extents == NULL) {
-...
2012 May 04
0
[LLVMdev] StructTypes into one
Hi Михаил,
> Is it possible to merge StructTypes with different names like:
>
> %"class.std::allocator.4" = type { i8 }
> %"class.__gnu_cxx::new_allocator.5" = type { i8 }
> %"class.std::allocator.0" = type { i8 }
> %"class.__gnu_cxx::new_allocator.1" = type { i8 }
> %"class.std::allocator.0.6" = type { i8 }
>
> merge
2005 Feb 13
1
[LLVMdev] Undefined references
Hi LLVMers,
I can't figure out why these errors exits:
-------------------------
llvm[2]: Linking Debug executable opt
c:/projects/build/MinGW/llvm-4-1/Debug/lib/LLVMProfilePaths.o(.text$_ZN4llvm10BranchInstC1EPNS_10BasicBlockES2_+0x52):
In function
`ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKPN4llvm8FunctionEPNS3_5GraphEEEE10deallocateEPSA_j':
2011 Jul 06
1
[LLVMdev] Error on using DataStructureAnalysis
Hi,
though DSA isn't maintained in the current build, I need to
use it for analyzing dependencies among functions.
Therfore I load the EQTDDataStructures pass and retrieve the
mapping from nodes int the callee to the ones in the parent
DSGraph with computeNodeMapping.
In most cases this works well, but for some function calls I
get following error:
DSGraph.cpp:1379: static void
2011 Jul 07
1
[LLVMdev] Error on using DataStructureAnalysis
Hi,
I am not exactly sure what causes your error. But if you have a reduced test case we can try looking at it.
Thanks,
Arushi
Hello,
i wrote a little pass. It tries to identify every call- / invoke-instruction recursively and calls computeCalleeCallerMapping
for each. The sample program just creates a vector of integer and adds an element to it.
Do you know what's wrong?
Best,
2019 Aug 12
0
[PATCH libnbd 1/7] api: Add semi-private function for freeing persistent data.
This adds a C-only semi-private function for freeing various types of
persistent data passed to libnbd.
There are some similarities with nbd_add_close_callback which we
removed in commit 7f191b150b52ed50098976309a6af883d245fc56.
---
generator/generator | 57 ++++++++++++++++++++
lib/Makefile.am | 1 +
lib/free.c | 129 ++++++++++++++++++++++++++++++++++++++++++++
lib/handle.c
2012 May 04
1
[LLVMdev] StructTypes into one
I have such problem with linking represented files.... llvm-link 1.bc 2.bc
-o 3.bc
2012/5/4 Duncan Sands <baldrick at free.fr>
> Hi Михаил,
>
> > Is it possible to merge StructTypes with different names like:
> >
> > %"class.std::allocator.4" = type { i8 }
> > %"class.__gnu_cxx::new_allocator.5" = type { i8 }
> >
2003 Sep 16
5
OpenSSH Security Advisory: buffer.adv
This is the 1st revision of the Advisory.
This document can be found at: http://www.openssh.com/txt/buffer.adv
1. Versions affected:
All versions of OpenSSH's sshd prior to 3.7 contain a buffer
management error. It is uncertain whether this error is
potentially exploitable, however, we prefer to see bugs
fixed proactively.
2. Solution:
Upgrade to OpenSSH
2019 Aug 12
2
Re: [PATCH libnbd 1/7] api: Add semi-private function for freeing persistent data.
On 8/12/19 11:08 AM, Richard W.M. Jones wrote:
> This adds a C-only semi-private function for freeing various types of
> persistent data passed to libnbd.
>
> There are some similarities with nbd_add_close_callback which we
> removed in commit 7f191b150b52ed50098976309a6af883d245fc56.
> ---
> +=head1 FREE CALLBACKS
> +
> +B<Note:> The API described in this
2019 Mar 26
0
[PATCH nbdkit v4 01/15] server: Implement extents/can_extents calls for plugins and filters.
...ents *exts, size_t i)
+{
+ assert (i < exts->nr_extents);
+ return exts->extents[i];
+}
+
+/* Insert *e in the list at the end. */
+static int
+append_extent (struct nbdkit_extents *exts, const struct nbdkit_extent *e)
+{
+ if (exts->nr_extents >= exts->allocated) {
+ size_t new_allocated;
+ struct nbdkit_extent *new_extents;
+
+ new_allocated = exts->allocated;
+ if (new_allocated == 0)
+ new_allocated = 1;
+ new_allocated *= 2;
+ new_extents =
+ realloc (exts->extents, new_allocated * sizeof (struct nbdkit_extent));
+ if (new_extents == NULL) {
+...
2019 Mar 20
0
[PATCH nbdkit 1/8] server: Implement extents/can_extents calls for plugins and filters.
...ents *exts, size_t i)
+{
+ assert (i < exts->nr_extents);
+ return exts->extents[i];
+}
+
+/* Insert *e in the list at the end. */
+static int
+append_extent (struct nbdkit_extents *exts, const struct nbdkit_extent *e)
+{
+ if (exts->nr_extents >= exts->allocated) {
+ size_t new_allocated;
+ struct nbdkit_extent *new_extents;
+
+ new_allocated = exts->allocated;
+ if (new_allocated == 0)
+ new_allocated = 1;
+ new_allocated *= 2;
+ new_extents =
+ realloc (exts->extents, new_allocated * sizeof (struct nbdkit_extent));
+ if (new_extents == NULL) {
+...
2019 Mar 28
0
[PATCH nbdkit v5 FINAL 01/19] server: Implement extents/can_extents calls for plugins and filters.
...ents *exts, size_t i)
+{
+ assert (i < exts->nr_extents);
+ return exts->extents[i];
+}
+
+/* Insert *e in the list at the end. */
+static int
+append_extent (struct nbdkit_extents *exts, const struct nbdkit_extent *e)
+{
+ if (exts->nr_extents >= exts->allocated) {
+ size_t new_allocated;
+ struct nbdkit_extent *new_extents;
+
+ new_allocated = exts->allocated;
+ if (new_allocated == 0)
+ new_allocated = 1;
+ new_allocated *= 2;
+ new_extents =
+ realloc (exts->extents, new_allocated * sizeof (struct nbdkit_extent));
+ if (new_extents == NULL) {
+...
2008 Aug 06
2
[LLVMdev] crash in JIT when running the inliner
Hi,
Today I've been trying to debug a weird bug that makes JIT crash with
certain code and when using the inliner. This may sound weird, but if I
disable the inliner, it doesn't crash.
I include an example gdb dump below. Does something looks wrong? Do you
think it's a bug in JIT or it's just some other piece of code that is
writing on the JIT memory?.. I don't really know
2013 Oct 02
2
C++ debugging help needed
I've had reports lately about segfaults in the rgl package. I've only
been able to reproduce these on Linux. I am not so familiar with C++
details, so I have a couple of questions way down below. But first some
background info.
One recipe to recreate the crash works with a new version 5.0-1 of the
mixOmics package:
> library(mixOmics)
> example(pca)
This crashes with
2008 Aug 07
0
[LLVMdev] crash in JIT when running the inliner
Hi,
> Today I've been trying to debug a weird bug that makes JIT crash with
> certain code and when using the inliner. This may sound weird, but if I
> disable the inliner, it doesn't crash.
> I include an example gdb dump below. Does something looks wrong? Do you
> think it's a bug in JIT or it's just some other piece of code that is
> writing on the JIT
2008 Aug 09
1
[LLVMdev] crash in JIT when running the inliner
>> Today I've been trying to debug a weird bug that makes JIT crash with
>> certain code and when using the inliner. This may sound weird, but if I
>> disable the inliner, it doesn't crash.
>> I include an example gdb dump below. Does something looks wrong? Do you
>> think it's a bug in JIT or it's just some other piece of code that is
>> writing
2019 Jan 06
2
LLVM IR linking separate function definitions in header files in single IR
Thank You..
I am observing memory allocation instructions malloc and new operator in
LLVM IR.
In my considered benchmark memory is allocated using new operator as
follows.
*return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));*
How can I observe such allocations in IR? I mean which instruction in IR is
equivalent to above code i.e new operator.
Please help
Thank You
On Sun, Jan 6,
2019 Mar 19
0
[PATCH nbdkit 1/9] server: Implement extents/can_extents calls for plugins and filters.
...p at index i. Existing extents at index
+ * [i...] are moved up by one.
+ */
+static int
+insert_extent (struct nbdkit_extents_map *map,
+ struct extent new_extent, size_t i)
+{
+ assert (i <= map->nr_extents);
+
+ if (map->nr_extents >= map->allocated) {
+ size_t new_allocated;
+ struct extent *new_extents;
+
+ new_allocated = map->allocated;
+ if (new_allocated == 0)
+ new_allocated = 1;
+ new_allocated *= 2;
+ new_extents =
+ realloc (map->extents, new_allocated * sizeof (struct extent));
+ if (new_extents == NULL) {
+ nbdkit_erro...
2019 Aug 12
0
Re: [PATCH libnbd 1/7] api: Add semi-private function for freeing persistent data.
On Mon, Aug 12, 2019 at 11:29:10AM -0500, Eric Blake wrote:
> On 8/12/19 11:08 AM, Richard W.M. Jones wrote:
> > + typedef void (*nbd_free_callback) (void *ptr, void *user_data);
> > + int nbd_add_free_callback (struct nbd_handle *h,
> > + void *ptr,
> > + nbd_free_callback cb,
> > +