diff src/share/vm/runtime/sharedRuntime.hpp @ 742:45463a04ca27

6834177: Running jsynprog on Solaris Nevada can cause JVM crash Summary: Use CodeCache buffer blob instead of static buffer in AdapterHandlerLibrary. Reviewed-by: never
author kvn
date Wed, 29 Apr 2009 12:58:09 -0700
parents e5b0439ef4ae
children dd57230ba8fe
line wrap: on
line diff
--- a/src/share/vm/runtime/sharedRuntime.hpp	Fri Apr 24 15:08:30 2009 -0700
+++ b/src/share/vm/runtime/sharedRuntime.hpp	Wed Apr 29 12:58:09 2009 -0700
@@ -557,12 +557,13 @@
 
 class AdapterHandlerLibrary: public AllStatic {
  private:
-  static u_char                   _buffer[];  // the temporary code buffer
+  static BufferBlob* _buffer; // the temporary code buffer in CodeCache
   static GrowableArray<uint64_t>* _fingerprints; // the fingerprint collection
   static GrowableArray<AdapterHandlerEntry*> * _handlers; // the corresponding handlers
   enum {
     AbstractMethodHandler = 1 // special handler for abstract methods
   };
+  static BufferBlob* buffer_blob();
   static void initialize();
   static int get_create_adapter_index(methodHandle method);
   static address get_i2c_entry( int index ) {