hotspot/src/share/vm/code/nmethod.cpp
changeset 27420 04e6f914cce1
parent 26912 19021f626ad2
child 27429 4ccd0992d680
--- a/hotspot/src/share/vm/code/nmethod.cpp	Fri Oct 24 08:35:29 2014 +0200
+++ b/hotspot/src/share/vm/code/nmethod.cpp	Fri Oct 24 14:25:46 2014 +0200
@@ -804,10 +804,7 @@
 #endif // def HAVE_DTRACE_H
 
 void* nmethod::operator new(size_t size, int nmethod_size, int comp_level) throw () {
-  // With a SegmentedCodeCache, nmethods are allocated on separate heaps and therefore do not share memory
-  // with critical CodeBlobs. We define the allocation as critical to make sure all code heap memory is used.
-  bool is_critical = SegmentedCodeCache;
-  return CodeCache::allocate(nmethod_size, CodeCache::get_code_blob_type(comp_level), is_critical);
+  return CodeCache::allocate(nmethod_size, CodeCache::get_code_blob_type(comp_level));
 }
 
 nmethod::nmethod(