<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
8025635: SoftReferences are not cleared before metaspace OOME are
thrown<br>
<br>
If native memory has been exhausted or MaxMetaspaceSize has been set
and<br>
has been reached, a GC will be done to try and unload classes and
free metadata<br>
space. If not enough metadata space has been freed, another GC
which clears<br>
SoftReferences will be done.<br>
<br>
Note that GC's are normally done to unload classes and free metadata
space.<br>
If not enough metadata space is freed by the GC, additional<br>
space is allocated and used for the metadata allocation. It is only
in<br>
the situation where no additional native memory can be allocated for<br>
metadata that SoftReferences are cleared.<br>
<br>
<a class="moz-txt-link-freetext"
href="http://cr.openjdk.java.net/%7Ejmasa/8025635/webrev.00/">http://cr.openjdk.java.net/~jmasa/8025635/webrev.00/</a>
</body>
</html>