How to pin/avoid gc for an oop? (original) (raw)
Volker Simonis volker.simonis at gmail.com
Thu Mar 9 17:52:28 UTC 2017
- Previous message: How to pin/avoid gc for an oop?
- Next message: How to pin/avoid gc for an oop?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Not quite sure what you want to achieve, but with G1 you could allocate a "humongous" object [1,2] which is just as big as a G1 region. It will be allocated into the old generation and not moved around by GC.
Regards, Volker
[1] http://www.oracle.com/technetwork/articles/java/g1gc-1984535.html [2] https://plumbr.eu/handbook/gc-tuning-in-practice/other-examples/humongous-allocations
On Thu, Mar 9, 2017 at 6:25 PM, Christian Hagedorn <ch-hagedorn at hispeed.ch> wrote:
Hi,
I want to implement an undo functionality and thus need to access an oop even when it is out of scope in the Java code. How can I pin such an oop to avoid garbage collection of its used memory? Best regards, Christian
- Previous message: How to pin/avoid gc for an oop?
- Next message: How to pin/avoid gc for an oop?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]