<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><div dir="ltr"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;">Hi all,</span><br style="line-height:21.299999237060547px;color:rgb(68, 68, 68);font-size:15px;"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;"><br></span></div><div dir="ltr"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;">I am not sure that target of mail is this group or not but I don't know better one for asking :)</span><br style="line-height:21.299999237060547px;color:rgb(68, 68, 68);font-size:15px;"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;"><br></span></div><div dir="ltr"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;">I am currently working on an OffHeap solution and I have a problem with "Compact" phase of GC.As I see at "Compact" phase, location of classes may be changed. I tried class pinning with JNI by "NewGlobalRef" method but it doesn't prevent compacting. As I understood, it only hides object from garbage collected.</span><br style="line-height:21.299999237060547px;color:rgb(68, 68, 68);font-size:15px;"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;">In brief, is there any way to prevent compacting of any specific class defition (or object) at GC cycle?Is there any bit, offset or field (such as mark_oop) in object header to prevent compacting of fully from GC for any specific object or class?</span><br style="line-height:21.299999237060547px;color:rgb(68, 68, 68);font-size:15px;"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;"><br></span></div><div dir="ltr"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;">Thanks in advance.</span><br style="line-height:21.299999237060547px;color:rgb(68, 68, 68);font-size:15px;"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;"><br></span></div><div dir="ltr"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;">--</span><br style="line-height:21.299999237060547px;color:rgb(68, 68, 68);font-size:15px;"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;"><br></span></div><div dir="ltr"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;">Serkan ÖZAL</span>                                        </div></div><div dir="ltr"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.299999237060547px;"><br></span></div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>                                      </div></body>
</html>