How to pin/avoid gc for an oop?

Jon V. sybersnake at gmail.com
Thu Mar 9 20:12:22 UTC 2017


Are you trying to build a transactional memory system for the JVM or your
own Java code?

On Thu, Mar 9, 2017 at 2:33 PM Christian <ch-hagedorn at hispeed.ch> wrote:

> Hi Jon,
>
> I need this for an undo log of a transactional memory system with
> pessimistic locking/eager version management.
> Am 9. März 2017, um 19:00, "Jon V." <sybersnake at gmail.com> schrieb:
>
> Can you clarify what you mean by Undo and why you think this should be
> done at the VM level so we can better understand the request.
>
> If you don't want something to be garbage collected then simply don't
> dereference it.
>
> On Thu, Mar 9, 2017 at 12:38 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
>
>


More information about the hotspot-dev mailing list