allocation
Open jar from another jar
The same old problem ... I want to run my jar on Mac or Linux with high memory allocation. I do not want the user to open the Terminal and write java -XMx512 -jar MainJar.jar manually.[详细]
2023-01-22 08:58 分类:问答Allocating memory to pointer structures inside structures
If I have a structure such as typedef struct _people { char *name; bool *exists; struct _p开发者_如何学编程eople **citizens;[详细]
2023-01-22 05:18 分类:问答Stack-based object instantiation in D
I\'m learning D, and am confused by an error I\'m getting. Consider the following: module helloworld; import std.stdio;[详细]
2023-01-21 11:47 分类:问答Allocate Virtual memory before running out of RAM
is it possible, in a C/C++ program, to allocate virtual memory (Swap Spac开发者_运维技巧e) for an specific array, so that the program keeps using RAM for the rest of variables, and maybe getting some[详细]
2023-01-21 04:10 分类:问答Pinned memory OpenCL, has anybody successfully used it?
I used the CL_MEM_ALLOC_HOST_PTR flag with my clCreateBuffer calls, but the Compute Profiler shows all my \"host mem transfer type\" as being Pageable. I tried it in two different kernel setups, but t[详细]
2023-01-21 03:20 分类:问答Dynamic Contiguous 3D arrays in C
I\'m trying to implement dynamically allocated contiguous 3D arrays in a C code.The arrays must be contiguous because I\'m relying on netCDF output of the arrays.Now I adapted a solution posted here S[详细]
2023-01-21 03:01 分类:问答Code requires too much memory
I\'m porting some code to another structure: class EnvironObject { protected: vector<float> mX, mY, mXSpeed, mYSpeed;[详细]
2023-01-20 21:24 分类:问答NPN_MemAlloc after NPN_MemFree screws the returning data to Google Chrome
I\'ve finished my NPAPI plug-in and it works great in Google Chrome but there\'s a strange problem. The problem is that I\'ve coded a method in the plug-in that returns a string to the browser. In ord[详细]
2023-01-15 21:18 分类:问答Does any operating system implement buffering for malloc()?
A lot of c/malloc()\'s in a for/while/do can consume a lot of time so I am curious if any operating system buffers memory for fast mallocs.[详细]
2023-01-15 08:01 分类:问答Why use [ClassName alloc] instead of [[self class] alloc]?
I\'m reading through Mark Dalrymple\'s Learn Objective-C on the Mac (only at the chapter on Protocols, so still relatively newbish) and trying to figure something out:[详细]
2023-01-12 18:32 分类:问答