Why L- & gt; l_G- & gt; _defaultmeta.value.gc is still NULL?

I am currently trying to hack the Lua implementation of a game in order to extend the built-in methods for game modders. In order to do so, I try to hijack a the pointer to a valid lua_State struct and register new libraries with it. I have now tried

Android: Ping server every 10 minutes

I need to ping server(api call) in every 10 mins, api call should be working if my application runs in background. Please suggest me the better option. Right now I used Service, but it get finish after some time if my application is in background(due

Problems with garbage collection and Picasso

I am trying to set an ImageView in a Google Maps Marker's InfoWindow and have copied the code from this answer pretty exactly, except that my InfoWindowAdapter isn't an anonymous inner class (it's just an inner class of the activity). This was workin

Code gets slower as more canned berries are allocated

Edit: It turns out that things generally (not just array/ref operations) slow down the more arrays have been created, so I guess this might just be measuring increased GC times and might not be as strange as I thought. But I'd really like to know (an

java: use an existing object or create a new one?

What is better: This public Move(moveString) { ArrayList<Square> moveSquares = splitToSquares(moveString.toLowerCase()); this.from = new Square(moveSquares.get(0)); this.to = new Square(moveSquares.get(1)); } or this: public Move(moveString) { Array

The Gen2 collection does not always collect dead objects?

By monitoring the CLR #Bytes in all Heaps performance counter of a brand new .NET 4.5 server application over the last few days, I can notice a pattern that makes me think that Gen2 collection is not always collecting dead objects, but I am having tr

Parallel Compacting Collector Algorithm

I have two questions. And one of them will be ragarding the topic:) 1) I have faced with a problem of not being able to find the full information about how different garbage collector work in HotSpot. But I am not talking about general descriptions o

Alternative to the substring ()

I have a pipe delimited file which I parse to get system options. The environment is sensitive to heap allocation and we are trying to avoid garbage collection. Below is the code I am using to parse the pipe delimited string. This function is called

JavaFX addEventListener Memory Leak on Grand Parent

Why would the anonymous inner class not be released here, causing a memory leak? This happens for FX 2.2.1. anchorPane.getParent().getParent().lookup("#grandParentButton").addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent>() {

python steals objects

Well I'm just learning Python and I'm experiencing some strange behavior. I guess that garbage collector is responsible for that but I'm not sure. SORRY LADS I MESSED UP THE QUESTION I wanted reproduce some weirdness I was getting while using some li

Can the nested static class variable be retrieved?

In Java, having a nested static class Human, I'm wondering if after cleanup of the map variable can make it available for garbage collected. At the moment just before doSomeCode() I called System.gc() and added Thread.sleep(60000) to wait for garbage

How to disable explicit place recovery in .Net 4?

I'm using 3-rd party libraries in my application, where GC.Collect() method is often explicitly called. The problem is that it produces deadlocks (which is a well known issue of calling gc explicitly). How can configure my application (app.config) so

G1GC long break with initial mark

With j7u5, G1GC "-Xms3200m -Xmx3200m -XX:+UseG1GC -XX:ParallelGCThreads=14 -XX:ConcGCThreads=4 -XX:MaxGCPauseMillis=40 -XX:NewRatio=2 -XX:SurvivorRatio=10 -XX:+PrintGC -XX:+PrintGCDateStamps" for a given performance test, my application hits a l

Problem with garbage collection Android

I'm developing an app for tivi box powered by Android2.2. I have a loading screen and all of data have been downloaded. After data downloaded it change to home screen . My home screen layout has 4 relative layouts are the same. When i move from gridv

Do the constructor arguments get GC'ed?

I am using a system which needs to initialize many objects using transactions, and for reasons beyond the scope of this question these transactions must be passed into the constructors. Like this: trait Mutable class Txn(i: Int) { def newID(implicit

options for G1 garbage collectors are not available?

http://www.oracle.com/technetwork/java/javase/tech/g1-intro-jsp-135488.html seems to be the official docs for the G1 garbage collector. There are two options mentioned: -XX:+G1ParallelRSetUpdatingEnabled -XX:+G1ParallelRSetScanningEnabled When config

System.gc () calls by the main APIs

Some of you probably know that some of core java APIs make explicit calls to System.gc(). I know two cases when this happens: NIO. I believe that is done to do some cleanup for direct ByteBuffers, when system runs out of "direct" memory. RMI. He

Improvement of the GC by referencing objects

Concerning the efficiency of Garbage Collection: Is there any benefit to deliberately deferencing an object vs letting it fall out of scope ? Will the JVM actually do anything differently if I specifically set an Object to null ? Expanding on that id

.Net 4 MemoryCache leaks with simultaneous garbage collection

I'm using the new MemoryCache in .Net 4, with a max cache size limit in MB (I've tested it set between 10 and 200MB, on systems with between 1.75 and 8GB of memory). I don't set any time based expiration on the objects, as I'm using the cache simply

C # Collecting waste from the object with memory leak

I am using a 3rd-party object I didn't create that over time consumes a lot of resources. This object shouldn't in any way contain a state, it simply performs a calculation. Despite this fact, everytime I call a specific function of this object a lit

Why is my Destructor called?

I have a few classes that hold references to other classes through IDictionary instance members. Like so: class A { private readonly Dictionary<int, B> _particles = new Dictionary<int, B>(); public void CreateNewB(int someInt) { var b = new B(

How can I find memory leaks in a long-running Perl program?

Perl uses reference counting for GC, and it's quite easy to make a circular reference by accident. I see that my program seems to be using more and more memory, and it will probably overflow after a few days. Is there any way to debug memory leaks in