Is it possible to tell the JVM to hint at the OS that some object would preferably not be popped out to replace the place?
The short answer is no.
Java does not allow you to control what is replaced and what is “fixed” in RAM.
Worrying about this kind of thing is usually a sign that there is something else wrong with your project. The OS as a whole will be much better at working on what should be replaced and what should not. Your task is to write your software so that it does not try to guess what the underlying VM / OS will do, just focus on delivering your features and good design.
This problem was also very noticeable in Eclipse and the KeepResident dirty hack plugin ( http://suif.stanford.edu/pub/keepresident/ ) avoids this.
Could this be a good place to start? I did not see it widespread, so maybe it was integrated into the standard Eclipse distribution?
! . ? , C.
( ): Dont 'do it: -).
. "" (, mlock (2) Linux, VirtualLock Windows).
VM Java- API. , , , , ...
, , (JVM ), , . JVM , OS .
, , :)
. , . , , , .
(Non Java) , , - / . . java (, JNI). , , - , . java-, jogl . - , /, .
, JVM .
Source: https://habr.com/ru/post/1704111/More articles:Why is the size of the encrypted byte array different from its char [] representation? - c #Internet Explorer 6 Background Color - cssfseek / rewind in loop - performanceDisplay UIActivityIndicator value in x seconds - iphoneОпределение наилучшего алгоритма сжатия для использования в байтах - compressionHow to use Class :: ArrayObjects? - perlCSS menu broken in Firefox (display: table-cell;) - cssVideo editing tools on the command line - command-lineIs there a TFS tutorial for editing workflow? - tfsfingerprint verification - authenticationAll Articles