This seems like a good thing to have. Is there a more portable way to do this? Obviously this would not work on a non-sun JVM. I think the ideal would be to add a tryUnmap() method that attempts the case but swallows any exception.
Also I would like to fully understand the Sun's objection to allowing user code to unmap buffers. In that ticket on the previous thread on Windows+mmap there was a mention that forcing the unmap was somehow a security hole. I don't understand this. Unix obviously supports unmap and there is no security issue with that as normal process-level memory isolation protects processes from reading each others memory or files. I suspect maybe this would only be true in cases where you are trying to isolate different code in the same JVM which is not a valid use case. But I want to fully understand the issue before we add something someone claims is unsafe.
-Jay On Thu, Jul 25, 2013 at 12:07 AM, lizziew <[EMAIL PROTECTED]> wrote:
Awesome, thanks for the contribution! I posted a few follow-up items on the ticket.
-Jay On Mon, Aug 12, 2013 at 10:07 PM, elizabeth <[EMAIL PROTECTED]>wrote:
NEW: Monitor These Apps!
Apache Lucene, Apache Solr and all other Apache Software Foundation projects and their respective logos are trademarks of the Apache Software Foundation.
Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries. This site and Sematext Group is in no way affiliated with Elasticsearch BV.
Service operated by Sematext