I was wondering if it is possible to prevent an object from being moved around by the GC by setting one of the bits in the mark word of the object header myself (trying to trick GC).
So basically I would like to know if this way it could be ensured that a marked object always has the same memory address.